You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/01/21 04:33:16 UTC

[GitHub] [bookkeeper] kezhuw opened a new issue #3005: Ack broken entry succeed in ensemble change unsetting

kezhuw opened a new issue #3005:
URL: https://github.com/apache/bookkeeper/issues/3005


   **BUG REPORT**
   
   ***Describe the bug***
   Ack broken entry succeed in ensemble change unsetting.
   
   Besides this, `LedgerHandle.pendingAddOps` were read and then poped in nested:
   * Read in `LedgerHandle.unsetSuccessAndSendWriteRequest`.
   * Poped in call chain `PendingAddOp.unsetSuccessAndSendWriteRequest` to `LedgerHandle.sendAddSuccessCallbacks`
   
   This guess this is dangerous.
   
   ***To Reproduce***
   I created a [test case branch](https://github.com/kezhuw/bookkeeper/commits/ack-broken-entry-succeed-in-ensemble-changing-unset) in my fork. I repeated the scenario that test built here.
   
   This test constructs a scenario:
   * Ensemble size is two, write/ack quorum size is one. Let's assume
     initial ensemble members are b0 and b1.
   * Write four entries e0, e2, .. e3. The distribution algorithm will
     write e0 and e2 to b0, e1 and e3 to b1.
   * e1 completes its write. Bookie b1 crashes. Ensemble changing initiates.
     e0 completes its write but blocked from success due to ensemble changing.
   * Ensemble changing completes. The ledger will unset success and resend
     write requests if needed.
   
   In this scenario, after ensemble changed, all pending entries should proceed
   to success finally. Especially, e1 should unset its success and resend its write.
   
   In test case, e1 was confirmed as completed though its ack set broken by ensemble change.
   
   ***Expected behavior***
   Ack broken entry should resend their write request for ack fulfillment again.
   
   ***Screenshots***
   None.
   
   ***Additional context***
   In the test case branch, I pushed a possible fix commit https://github.com/kezhuw/bookkeeper/commit/207a140277d08e3c3bb3584a83af756d9a00c0dc.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org