summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/lid_space_compaction
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-21 15:34:32 +0100
committerGitHub <noreply@github.com>2021-01-21 15:34:32 +0100
commit0bc0a1d4414b165af82890fb149f2165f89fd030 (patch)
treec76f3d1722af1d559270326590086b03685acb50 /searchcore/src/tests/proton/documentdb/lid_space_compaction
parent019bf513ec7fb2c462753a783cb80c9cc0598fb5 (diff)
Revert "Reinstate the check for progress."
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/lid_space_compaction')
-rw-r--r--searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp b/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp
index 869c5871b15..c31141a943c 100644
--- a/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/lid_space_compaction/lid_space_compaction_test.cpp
@@ -486,14 +486,13 @@ TEST_F(JobTest, job_is_blocked_if_trying_to_move_document_for_frozen_bucket)
TEST_F(JobTest, job_can_restart_documents_scan_if_lid_bloat_is_still_to_large)
{
- init(ALLOWED_LID_BLOAT, ALLOWED_LID_BLOAT_FACTOR);
+ init(ALLOWED_LID_BLOAT, ALLOWED_LID_BLOAT_FACTOR, 3);
addMultiStats(10, {{1,3,4,5,6,9},{1,2,4,5,6,8}},
{{9,2}, // 30% bloat: move 9 -> 2
{8,3}, // move 8 -> 3 (this should trigger rescan as the set of used docs have changed)
{6,7}}); // no documents to move
EXPECT_FALSE(run()); // does not find 9 in first scan
- assertJobContext(2, 9, 1, 0, 0);
EXPECT_EQ(1u, _handler->_iteratorCnt);
// We simulate that the set of used docs have changed between these 2 runs
EXPECT_FALSE(run()); // move 9 -> 2