Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.2
-
None
-
None
-
Reviewed
Description
After HBASE-20411 we have
MemStoreSize::hashCode()
@Override public int hashCode() { long h = 31 * this.dataSize; h = h + 31 * this.heapSize; h = h + 31 * this.offHeapSize; return (int) h; }
This is not effective hashCode() implementation. Instead we can use:
MemStoreSize::hashCode()
@Override public int hashCode() { long h = this.dataSize; h = h * 31 + this.heapSize; h = h * 31 + this.offHeapSize; return (int) h; }
Attachments
Attachments
Issue Links
- relates to
-
HBASE-20411 Ameliorate MutableSegment synchronize
- Resolved