Fix major bug

This commit is contained in:
Andrea Cavalli 2023-05-22 23:33:58 +02:00
parent df946146a1
commit 26961125c0
2 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<lucene.version>9.6.0</lucene.version>
<rocksdb.version>8.1.1.1</rocksdb.version>
<junit.jupiter.version>5.9.0</junit.jupiter.version>
<data.generator.version>1.0.9</data.generator.version>
<data.generator.version>1.0.10</data.generator.version>
</properties>
<repositories>
<repository>

View File

@ -326,6 +326,9 @@ public class DatabaseMapDictionaryDeep<T, U, US extends DatabaseStage<U>> implem
protected void serializeSuffixTo(T keySuffix, BufDataOutput output) throws SerializationException {
var beforeWriterOffset = output.size();
assert beforeWriterOffset == keyPrefixLength;
assert keySuffixSerializer.getSerializedBinaryLength() == keySuffixLength
: "Invalid key suffix serializer length: " + keySuffixSerializer.getSerializedBinaryLength()
+ ". Expected: " + keySuffixLength;
keySuffixSerializer.serialize(keySuffix, output);
var afterWriterOffset = output.size();
assert suffixKeyLengthConsistency(afterWriterOffset - beforeWriterOffset)