|
|
@ -48,6 +48,7 @@ public class MutableOptionsGetSetTest { |
|
|
|
.setBlobGarbageCollectionForceThreshold(0.80) |
|
|
|
.setBlobGarbageCollectionForceThreshold(0.80) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.17) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.17) |
|
|
|
|
|
|
|
.setMemtableWholeKeyFiltering(false) |
|
|
|
.setMemtableHugePageSize(3) |
|
|
|
.setMemtableHugePageSize(3) |
|
|
|
.setMaxSuccessiveMerges(4) |
|
|
|
.setMaxSuccessiveMerges(4) |
|
|
|
.setMaxWriteBufferNumber(12) |
|
|
|
.setMaxWriteBufferNumber(12) |
|
|
@ -70,6 +71,7 @@ public class MutableOptionsGetSetTest { |
|
|
|
.setEnableBlobFiles(false) |
|
|
|
.setEnableBlobFiles(false) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.236) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.236) |
|
|
|
|
|
|
|
.setMemtableWholeKeyFiltering(true) |
|
|
|
.setMemtableHugePageSize(8) |
|
|
|
.setMemtableHugePageSize(8) |
|
|
|
.setMaxSuccessiveMerges(12) |
|
|
|
.setMaxSuccessiveMerges(12) |
|
|
|
.setMaxWriteBufferNumber(22) |
|
|
|
.setMaxWriteBufferNumber(22) |
|
|
@ -104,8 +106,9 @@ public class MutableOptionsGetSetTest { |
|
|
|
assertThat(builder1.blobGarbageCollectionForceThreshold()).isEqualTo(0.80); |
|
|
|
assertThat(builder1.blobGarbageCollectionForceThreshold()).isEqualTo(0.80); |
|
|
|
assertThat(builder1.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder1.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder1.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder1.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder1.memtableHugePageSize()).isEqualTo(3); |
|
|
|
|
|
|
|
assertThat(builder1.memtablePrefixBloomSizeRatio()).isEqualTo(0.17); |
|
|
|
assertThat(builder1.memtablePrefixBloomSizeRatio()).isEqualTo(0.17); |
|
|
|
|
|
|
|
assertThat(builder1.memtableWholeKeyFiltering()).isEqualTo(false); |
|
|
|
|
|
|
|
assertThat(builder1.memtableHugePageSize()).isEqualTo(3); |
|
|
|
assertThat(builder1.maxSuccessiveMerges()).isEqualTo(4); |
|
|
|
assertThat(builder1.maxSuccessiveMerges()).isEqualTo(4); |
|
|
|
assertThat(builder1.maxWriteBufferNumber()).isEqualTo(12); |
|
|
|
assertThat(builder1.maxWriteBufferNumber()).isEqualTo(12); |
|
|
|
assertThat(builder1.inplaceUpdateNumLocks()).isEqualTo(16); |
|
|
|
assertThat(builder1.inplaceUpdateNumLocks()).isEqualTo(16); |
|
|
@ -127,8 +130,9 @@ public class MutableOptionsGetSetTest { |
|
|
|
assertThat(builder2.enableBlobFiles()).isEqualTo(false); |
|
|
|
assertThat(builder2.enableBlobFiles()).isEqualTo(false); |
|
|
|
assertThat(builder2.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder2.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder2.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder2.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder2.memtableHugePageSize()).isEqualTo(8); |
|
|
|
|
|
|
|
assertThat(builder2.memtablePrefixBloomSizeRatio()).isEqualTo(0.236); |
|
|
|
assertThat(builder2.memtablePrefixBloomSizeRatio()).isEqualTo(0.236); |
|
|
|
|
|
|
|
assertThat(builder2.memtableWholeKeyFiltering()).isEqualTo(true); |
|
|
|
|
|
|
|
assertThat(builder2.memtableHugePageSize()).isEqualTo(8); |
|
|
|
assertThat(builder2.maxSuccessiveMerges()).isEqualTo(12); |
|
|
|
assertThat(builder2.maxSuccessiveMerges()).isEqualTo(12); |
|
|
|
assertThat(builder2.maxWriteBufferNumber()).isEqualTo(22); |
|
|
|
assertThat(builder2.maxWriteBufferNumber()).isEqualTo(22); |
|
|
|
assertThat(builder2.inplaceUpdateNumLocks()).isEqualTo(160); |
|
|
|
assertThat(builder2.inplaceUpdateNumLocks()).isEqualTo(160); |
|
|
@ -192,6 +196,7 @@ public class MutableOptionsGetSetTest { |
|
|
|
.setBlobGarbageCollectionForceThreshold(0.80) |
|
|
|
.setBlobGarbageCollectionForceThreshold(0.80) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.17) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.17) |
|
|
|
|
|
|
|
.setMemtableWholeKeyFiltering(false) |
|
|
|
.setMemtableHugePageSize(3) |
|
|
|
.setMemtableHugePageSize(3) |
|
|
|
.setMaxSuccessiveMerges(4) |
|
|
|
.setMaxSuccessiveMerges(4) |
|
|
|
.setMaxWriteBufferNumber(12) |
|
|
|
.setMaxWriteBufferNumber(12) |
|
|
@ -215,8 +220,9 @@ public class MutableOptionsGetSetTest { |
|
|
|
assertThat(builder1.blobGarbageCollectionForceThreshold()).isEqualTo(0.80); |
|
|
|
assertThat(builder1.blobGarbageCollectionForceThreshold()).isEqualTo(0.80); |
|
|
|
assertThat(builder1.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder1.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder1.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder1.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder1.memtableHugePageSize()).isEqualTo(3); |
|
|
|
|
|
|
|
assertThat(builder1.memtablePrefixBloomSizeRatio()).isEqualTo(0.17); |
|
|
|
assertThat(builder1.memtablePrefixBloomSizeRatio()).isEqualTo(0.17); |
|
|
|
|
|
|
|
assertThat(builder1.memtableWholeKeyFiltering()).isEqualTo(false); |
|
|
|
|
|
|
|
assertThat(builder1.memtableHugePageSize()).isEqualTo(3); |
|
|
|
assertThat(builder1.maxSuccessiveMerges()).isEqualTo(4); |
|
|
|
assertThat(builder1.maxSuccessiveMerges()).isEqualTo(4); |
|
|
|
assertThat(builder1.maxWriteBufferNumber()).isEqualTo(12); |
|
|
|
assertThat(builder1.maxWriteBufferNumber()).isEqualTo(12); |
|
|
|
assertThat(builder1.inplaceUpdateNumLocks()).isEqualTo(16); |
|
|
|
assertThat(builder1.inplaceUpdateNumLocks()).isEqualTo(16); |
|
|
@ -237,6 +243,7 @@ public class MutableOptionsGetSetTest { |
|
|
|
.setEnableBlobFiles(false) |
|
|
|
.setEnableBlobFiles(false) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.236) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.236) |
|
|
|
|
|
|
|
.setMemtableWholeKeyFiltering(true) |
|
|
|
.setMemtableHugePageSize(8) |
|
|
|
.setMemtableHugePageSize(8) |
|
|
|
.setMaxSuccessiveMerges(12) |
|
|
|
.setMaxSuccessiveMerges(12) |
|
|
|
.setMaxWriteBufferNumber(22) |
|
|
|
.setMaxWriteBufferNumber(22) |
|
|
@ -258,8 +265,9 @@ public class MutableOptionsGetSetTest { |
|
|
|
assertThat(builder2.enableBlobFiles()).isEqualTo(false); |
|
|
|
assertThat(builder2.enableBlobFiles()).isEqualTo(false); |
|
|
|
assertThat(builder2.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder2.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder2.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder2.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder2.memtableHugePageSize()).isEqualTo(8); |
|
|
|
|
|
|
|
assertThat(builder2.memtablePrefixBloomSizeRatio()).isEqualTo(0.236); |
|
|
|
assertThat(builder2.memtablePrefixBloomSizeRatio()).isEqualTo(0.236); |
|
|
|
|
|
|
|
assertThat(builder2.memtableWholeKeyFiltering()).isEqualTo(true); |
|
|
|
|
|
|
|
assertThat(builder2.memtableHugePageSize()).isEqualTo(8); |
|
|
|
assertThat(builder2.maxSuccessiveMerges()).isEqualTo(12); |
|
|
|
assertThat(builder2.maxSuccessiveMerges()).isEqualTo(12); |
|
|
|
assertThat(builder2.maxWriteBufferNumber()).isEqualTo(22); |
|
|
|
assertThat(builder2.maxWriteBufferNumber()).isEqualTo(22); |
|
|
|
assertThat(builder2.inplaceUpdateNumLocks()).isEqualTo(160); |
|
|
|
assertThat(builder2.inplaceUpdateNumLocks()).isEqualTo(160); |
|
|
@ -306,6 +314,7 @@ public class MutableOptionsGetSetTest { |
|
|
|
.setBlobGarbageCollectionForceThreshold(0.80) |
|
|
|
.setBlobGarbageCollectionForceThreshold(0.80) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setArenaBlockSize(42) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.17) |
|
|
|
.setMemtablePrefixBloomSizeRatio(0.17) |
|
|
|
|
|
|
|
.setMemtableWholeKeyFiltering(false) |
|
|
|
.setMemtableHugePageSize(3) |
|
|
|
.setMemtableHugePageSize(3) |
|
|
|
.setMaxSuccessiveMerges(4) |
|
|
|
.setMaxSuccessiveMerges(4) |
|
|
|
.setMaxWriteBufferNumber(12) |
|
|
|
.setMaxWriteBufferNumber(12) |
|
|
@ -328,8 +337,9 @@ public class MutableOptionsGetSetTest { |
|
|
|
assertThat(builder1.blobGarbageCollectionForceThreshold()).isEqualTo(0.80); |
|
|
|
assertThat(builder1.blobGarbageCollectionForceThreshold()).isEqualTo(0.80); |
|
|
|
assertThat(builder1.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder1.minBlobSize()).isEqualTo(minBlobSize); |
|
|
|
assertThat(builder1.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder1.arenaBlockSize()).isEqualTo(42); |
|
|
|
assertThat(builder1.memtableHugePageSize()).isEqualTo(3); |
|
|
|
|
|
|
|
assertThat(builder1.memtablePrefixBloomSizeRatio()).isEqualTo(0.17); |
|
|
|
assertThat(builder1.memtablePrefixBloomSizeRatio()).isEqualTo(0.17); |
|
|
|
|
|
|
|
assertThat(builder1.memtableWholeKeyFiltering()).isEqualTo(false); |
|
|
|
|
|
|
|
assertThat(builder1.memtableHugePageSize()).isEqualTo(3); |
|
|
|
assertThat(builder1.maxSuccessiveMerges()).isEqualTo(4); |
|
|
|
assertThat(builder1.maxSuccessiveMerges()).isEqualTo(4); |
|
|
|
assertThat(builder1.maxWriteBufferNumber()).isEqualTo(12); |
|
|
|
assertThat(builder1.maxWriteBufferNumber()).isEqualTo(12); |
|
|
|
assertThat(builder1.inplaceUpdateNumLocks()).isEqualTo(16); |
|
|
|
assertThat(builder1.inplaceUpdateNumLocks()).isEqualTo(16); |
|
|
|