Details
-
Bug
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
In our production cluster we observed the cell value is modified after successful scanner read. After analyzing we observed OnheapDecodedCell is not created properly.
We create OnheapDecodedCell with complete valAndTagsBuffer underlying array.
return new OnheapDecodedCell(Bytes.copy(keyBuffer, 0, this.keyLength), currentKey.getRowLength(), currentKey.getFamilyOffset(), currentKey.getFamilyLength(), currentKey.getQualifierOffset(), currentKey.getQualifierLength(), currentKey.getTimestamp(), currentKey.getTypeByte(), valAndTagsBuffer.array(), valAndTagsBuffer.arrayOffset() + vOffset, this.valueLength, memstoreTS, tagsArray, tOffset, this.tagsLength);
Here we are passing valAndTagsBuffer.array() for value extraction.
The underlying array will be modified if it is altered anywhere.
Attachments
Issue Links
- breaks
-
HBASE-27151 TestMultiRespectsLimits.testBlockMultiLimits repeatable failure
- Resolved
- relates to
-
HBASE-27161 Improve TestMultiRespectsLimits
- Resolved
- links to
(6 links to)