Improve the robustnesss of PartialCompactionFailure test.

Summary:
Improve the robustness of PartialCompactionFailure test.

Test Plan:
./db_test