catalin-luca opened a new pull request #3062:
URL: https://github.com/apache/hbase/pull/3062


   The RegionInfo class uses  `DataInputStream.read(byte[lengthOfPBMagic])` to 
read the protobuf magic marker from the beginning of the stream.
   
   The code in RegionInfo assumes that the passed byte buffer will be filled, 
but the DataInputStream class only guarantees that it will read at most 
lengthOfPBMagic bytes.
   
   This sometimes causes errors stating that region info file could not be 
parsed.
   
   The fix is to simply issue multiple read calls until lengthOfPBMagic bytes 
have been read.


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


Reply via email to