jojochuang opened a new pull request #1301: HBASE-23833. The relocated 
hadoop-thirdparty protobuf breaks HBase asyncwal 
URL: https://github.com/apache/hbase/pull/1301
 
 
   I've tried a few approaches. It turns out the quickest solution to this is 
with Java Reflection.
   
   (1) Create a ProtobufDecoder that is inspired by 
io.netty.handler.codec.protobuf.ProtobufDecoder. The original ProtobufDecoder 
has dependency on protobuf. Use reflection to access the shaded protobuf in 
HDFS when applicable.
   
   (2) Similarly, create a private class BuilderPayloadSetter that does 
ByteString.copyFrom() + DataTransferEncryptorMessageProto.Builder.setPayload().
   
   Manually tested with Hadoop 3.1.2 and 3.3.0-SNAPSHOT (on top of HBASE-23833 
and HBASE-23998)
   
   Please let me know if this is the acceptable approach.

----------------------------------------------------------------
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

Reply via email to