* Fixed backup loss issue during graceful shutdown.
* Improved replica sync retry process.
* Refactored partitioning code.
Merge pull request #2149 from mdogan/fix/3.2/partition

* Fixed backup loss issue during graceful shutdown.