stack created HBASE-21080:
-----------------------------
Summary: Collectors.toMap uses a byte [] for key
Key: HBASE-21080
URL: https://issues.apache.org/jira/browse/HBASE-21080
Project: HBase
Issue Type: Bug
Reporter: stack
Good one found by a jxray spelunking [[email protected]].
The below added by HBASE-19496 is making hashmaps with byte []s for keys (byte
[]'s don't do hashCode/Equals; usually when we have byte []'s for keys, we do
ConcurrentMap and pass a Comparator in constructor that knows how to do byte
[]s).
{code}
.setStoreSequenceIds(regionLoadPB.getStoreCompleteSequenceIdList().stream()
.collect(Collectors.toMap(
(ClusterStatusProtos.StoreSequenceId s) -> s.getFamilyName().toByteArray(),
ClusterStatusProtos.StoreSequenceId::getSequenceId)))
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)