Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
reproduce:
1、fullfill in-memory map with records, and let this.inMemoryMap.size() % NUMBER_OF_RECORDS_TO_ESTIMATE_PAYLOAD_SIZE == 0
2、insert a record with key1 into ExternalSpillableMap (which will cause size estimate and make sure the currentInMemoryMapSize is still greater than or equal to the maxInMemorySizeInBytes).
it will be spilled to disk.
3、Reduce the size of record of key1 which will make the currentInMemoryMapSize less than maxInMemorySizeInBytes when put into ExternalSpillableMap
it will be put into in-memory map.
data duplication when iterator finally.
Attachments
Issue Links
- links to