protected DB makeDB() {
final DBMaker maker = DBMaker.newMemoryDirectDB().transactionDisable().cacheDisable();
return maker.make();
}
Map<Long, Position> positions = this.db.createHashMap(name).keySerializer(Serializer.BASIC).valueSerializer(new MapdbSerializer()).make();
this MapdbSerializer is similar with Serializer.BYTE_ARRAY
my project in run into long time (many months) and sometimes I get this log "data were read beyond record size, check your serializer". I check my serializer it's ok and I have read your code but do not find a problem.
And when this error occur I restart system and put my data to your map it's still ok
As you can see I read all bytes with size. this size is written when I serialze.
I use version 1.0.9
Hi I use MemoryDirectDB. Here is my code
this MapdbSerializer is similar with Serializer.BYTE_ARRAY my project in run into long time (many months) and sometimes I get this log "data were read beyond record size, check your serializer". I check my serializer it's ok and I have read your code but do not find a problem.
And when this error occur I restart system and put my data to your map it's still ok
As you can see I read all bytes with size. this size is written when I serialze. I use version 1.0.9