diff options
author | Tor Egge <Tor.Egge@yahoo-inc.com> | 2016-11-28 12:52:05 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahoo-inc.com> | 2016-11-28 12:52:05 +0000 |
commit | f3b83f65384b9e47700ce03a376234a513f1c4a6 (patch) | |
tree | 4f0ba5a1173a812040a066026b1fe2f1806f1350 /searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp | |
parent | faf96beab051f773def0eecc70e99e112ec2290e (diff) |
Add comments.
Diffstat (limited to 'searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp')
-rw-r--r-- | searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp b/searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp index 3a4446b4cb2..03b5931c6b9 100644 --- a/searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp +++ b/searchlib/src/tests/attribute/compaction/attribute_compaction_test.cpp @@ -175,6 +175,8 @@ TEST_F("Test that no compaction of int8 array attribute increases address space f.populate(range1, 1000); f.hammer(range2, 101); AddressSpace afterSpace = f.getMultiValueAddressSpaceUsage("after"); + // 100 * 1000 dead clusters due to new values for docids + // 1 reserved cluster accounted as dead EXPECT_EQUAL(100001, afterSpace.dead()); } @@ -185,6 +187,7 @@ TEST_F("Test that compaction of int8 array attribute limits address space usage" f.populate(range1, 1000); f.hammer(range2, 101); AddressSpace afterSpace = f.getMultiValueAddressSpaceUsage("after"); + // DEAD_CLUSTERS_SLACK in multi value mapping is is 64k EXPECT_GREATER(65536, afterSpace.dead()); } |