Bookkeeper throttling - permits is not released when read has failed from all
replicas
--------------------------------------------------------------------------------------
Key: BOOKKEEPER-186
URL: https://issues.apache.org/jira/browse/BOOKKEEPER-186
Project: Bookkeeper
Issue Type: Bug
Components: bookkeeper-client
Affects Versions: 4.0.0
Reporter: Rakesh R
Fix For: 4.1.0
Permit is not releasing in the case when there is no quorum available and the
readEntries operation failed from all replicas.
Following is the condition where it checks the failure in quorum and invoking
ReadCallback:
{noformat}
void sendRead(ArrayList<InetSocketAddress> ensemble, LedgerEntry entry, int
lastErrorCode) {
if (entry.nextReplicaIndexToReadFrom >= lh.metadata.quorumSize) {
// we are done, the read has failed from all replicas, just fail the
// read
submitCallback(lastErrorCode);
return;
}
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira