Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
Incompatible change, Reviewed
Description
Here is offending code from inside in StoreScanner#next:
// kv is no longer immutable due to KeyOnlyFilter! use copy for safety KeyValue copyKv = new KeyValue(kv.getBuffer(), kv.getOffset(), kv.getLength());
This looks wrong given philosophy up to this has been avoidance of garbage-making copies.
Maybe this has been looked into before and this is the only thing to be done but why is KeyOnlyFilter not making copies rather than mutating originals?
Making this critical against 0.92.