From 1df85848968f8822fa3df411dfbcc818f020fe38 Mon Sep 17 00:00:00 2001 From: Akanksha Mahajan Date: Mon, 7 Dec 2020 10:23:17 -0800 Subject: [PATCH] Fix unit test failure ppc64le in travis (#7752) Summary: Added a fix for the failure of DBTest2.PartitionedIndexUserToInternalKey on ppc64le in travis Closes https://github.com/facebook/rocksdb/issues/7746 Pull Request resolved: https://github.com/facebook/rocksdb/pull/7752 Test Plan: Ran travis job multiple times and it passed. Will keep watching the travis job after this patch. Reviewed By: pdillinger Differential Revision: D25373130 Pulled By: akankshamahajan15 fbshipit-source-id: fa0e3f85f75b687415044a506e42cc38ead87975 --- db/db_test2.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/db_test2.cc b/db/db_test2.cc index 9efdcbd22..4d7f93269 100644 --- a/db/db_test2.cc +++ b/db/db_test2.cc @@ -174,7 +174,9 @@ TEST_F(DBTest2, PartitionedIndexUserToInternalKey) { ASSERT_OK(Put("keykey_" + std::to_string(j), value)); snapshots.push_back(db_->GetSnapshot()); } - Flush(); + ASSERT_OK(Flush()); + dbfull()->TEST_WaitForFlushMemTable(); + for (auto s : snapshots) { db_->ReleaseSnapshot(s); }