This is an automated email from the ASF dual-hosted git repository.

ivank pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 43a896a  [MERGE YAHOO REPO] CMS-2060: Catch IndexOutOfBoundsException 
when reading entry log index map
43a896a is described below

commit 43a896a08dae2a3a273d02e4c1ed81516ab00c85
Author: Matteo Merli <[email protected]>
AuthorDate: Fri Jan 26 18:08:11 2018 +0100

    [MERGE YAHOO REPO] CMS-2060: Catch IndexOutOfBoundsException when reading 
entry log index map
    
    Descriptions of the changes in this PR:
    This is cherry-pick from yahoo repo of branch yahoo-4.3.
    
    original commit is:
    https://github.com/yahoo/bookkeeper/commit/2b7aacc5
    CMS-2060: Catch IndexOutOfBoundsException when reading entry log index map
    
    Author: Matteo Merli <[email protected]>
    
    Reviewers: Ivan Kelly <[email protected]>, Enrico Olivelli 
<[email protected]>, Sijie Guo <[email protected]>
    
    This closes #1061 from jiazhai/cherry_picks/i_164
---
 .../src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java         | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
index 4eab466..eaf3663 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
@@ -1314,6 +1314,8 @@ public class EntryLogger {
                 // Move to next entry, if any
                 offset += ledgersMapSize + 4;
             }
+        } catch (IndexOutOfBoundsException e) {
+            throw new IOException(e);
         } finally {
             ledgersMap.release();
         }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to