apurtell commented on a change in pull request #352: HBASE-22622 - WALKey
Extended Attributes
URL: https://github.com/apache/hbase/pull/352#discussion_r305533271
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALKeyImpl.java
##########
@@ -573,6 +622,12 @@ public void readFieldsFromPb(WALProtos.WALKey walKey,
if (walKey.hasOrigSequenceNumber()) {
this.origLogSeqNum = walKey.getOrigSequenceNumber();
}
+ if (walKey.getExtendedAttributesCount() > 0){
+ this.extendedAttributes = new
HashMap<>(walKey.getExtendedAttributesCount());
+ for (WALProtos.Attribute attr : walKey.getExtendedAttributesList()){
+ extendedAttributes.put(attr.getKey(), attr.getValue().toByteArray());
Review comment:
Noticed while backporting. Attribute values may have been compressed and
need to be decompressed. Will fix up for commit.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services