THe partition manager still is not thread safe