[
https://issues.apache.org/jira/browse/BOOKKEEPER-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395265#comment-14395265
]
Flavio Junqueira commented on BOOKKEEPER-847:
---------------------------------------------
A quick sanity check, what prevents the same problem from happening after this
check:
{noformat}
if (deadBookieIndex >= 0) {
{noformat}
Is it possible to have a race there?
> ArrayIndexOutOfBoundsException in LedgerFragmentReplicator::updateEnsembleInfo
> ------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-847
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-847
> Project: Bookkeeper
> Issue Type: Bug
> Reporter: Jia Zhai
> Assignee: Jia Zhai
> Attachments: BOOKKEEPER-847-2.patch, BOOKKEEPER-847.patch
>
>
> ArrayIndexOutOfBoundsException in
> LedgerFragmentReplicator::updateEnsembleInfo, because update ensemble info
> might happen after re-read ledger metadata, so the ensemble might already
> change. if ensemble is already changed, skip replacing the bookie doesn't
> exist.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)