[
https://issues.apache.org/jira/browse/BOOKKEEPER-900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15172312#comment-15172312
]
ASF GitHub Bot commented on BOOKKEEPER-900:
-------------------------------------------
GitHub user sboobna opened a pull request:
https://github.com/apache/bookkeeper/pull/17
BOOKKEEPER-900: release underreplicated lock when replicating to read…
… only bookie
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sboobna/bookkeeper BOOKKEEPER-900
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/bookkeeper/pull/17.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17
----
commit 8c50fd8db4808197112160cdc0faf8a596f2f2b5
Author: Siddharth Boobna <[email protected]>
Date: 2016-02-17T00:49:01Z
BOOKKEEPER-900: release underreplicated lock when replicating to read only
bookie
Change-Id: I46782877af3db29b29c5e1585e54757086763bf0
----
> read only bookie runs replicator and does not release the under replicated
> lock after failing
> ---------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-900
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-900
> Project: Bookkeeper
> Issue Type: Bug
> Components: bookkeeper-auto-recovery
> Affects Versions: 4.3.2
> Reporter: Siddharth Sunil Boobna
> Assignee: Siddharth Sunil Boobna
>
> ReplicationWorker throws BkWriteOnReadOnlyBookieException here:
> https://github.com/apache/bookkeeper/blob/master/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java#L255
> and does not release the under replicated lock.
> Solution:
> Release the under replicated lock before throwing
> BkWriteOnReadOnlyBookieException and make the replication worker wait till
> the bookie becomes writable again.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)