karanmehta93 opened a new pull request #2177: Journal scan should throw 
IOException when it reads negative length
URL: https://github.com/apache/bookkeeper/pull/2177
 
 
   Descriptions of the changes in this PR:
   
   ### Motivation
   
   During journal replay, we can encounter negative length value if there is 
journal corruption. Currently, due to this bug, we pass negative length to 
limit a buffer, which throws IllegalArgumentException.
   
   ### Changes
   
   Updated the Journal class to throw `IOException` with a clear message, 
instead of unclear `IllegalArgumentException`.
   
   Master Issue: #2176
   

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