Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-186

Bookkeeper throttling - permits is not released when read has failed from all replicas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.1.0
    • bookkeeper-client
    • None

    Description

      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:

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

      Attachments

        1. BOOKKEEPER-186_trunk.patch
          5 kB
          Rakesh Radhakrishnan
        2. BOOKKEEPER-186_trunk.patch
          5 kB
          Rakesh Radhakrishnan
        3. BOOKKEEPER-186_trunk-1.patch
          6 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: