1559924775 opened a new issue #2894:
URL: https://github.com/apache/bookkeeper/issues/2894


   **BUG REPORT**
   
   ***Describe the bug***
   
   When the journal directory is configured to be even, the ledger allocated to 
each journal will be uneven. The root cause is that almost all the ledger IDs 
generated by the LedgerIdGenerator class are even. The number of ZK temporary 
order nodes is determined by the cversion of the parent node. Whenever a child 
node is added or deleted, it will increase by 1. The LedgerIdGenerator class 
uses ZK's temporary order node to generate the ledgerid, and deletes the node 
immediately after generation. This way of use causes almost all cversions to be 
even, resulting in all ledgerids to be even.
   
   ***To Reproduce***
   
   Steps to reproduce the behavior:
   1. Configure in bk_server.conf: jouranlDirectorie=/tmp/bk-txn1,/tmp/bk-txn2
   2. production data to bookie
   
   ***Expected behavior***
   
   Almost all ledgerids are assigned to directory 1
   
   ***Screenshots***
   
   zookeeper:  PrepRequestProcessor::pRequest2TxnCreate:
   
![image2021-11-8_16-1-33](https://user-images.githubusercontent.com/35036009/141671319-418a2c51-0c2b-4f43-849f-c9fb340f114f.png)
   
   ![Uploading journal.png…]()
   
   
   ***Additional context***
   
   Add any other context about the problem here.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to