[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14909877#comment-14909877
 ] 

Venkateswararao Jujjuri commented on BOOKKEEPER-873:
----------------------------------------------------

I did some more debugging, and the problem appears to be ledgerIds created with 
-ve numbers (> 2^^63). I know I need to move hierarchical ledger manager, but 
for this test it should not be an issue.

I have uploaded my latest git branch, 
https://github.com/jvrao/bookkeeper/commits/LedgerId (top two commits)

In the test testLedgerCreateAdvWithLedgerIdInLoop() I create ledgers in a loop.

If I have this logic, test works consistently:
  while (true) {
+                ledgerId = rng.nextLong();
+                if (ledgerId > 0)
+                    break;
+            }

Test randomly fails if I comment out the check of ledgerId > 0

Does this ring any bell?



> Enhance CreatedLedger API to accept ledgerId as input
> -----------------------------------------------------
>
>                 Key: BOOKKEEPER-873
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-873
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: bookkeeper-client
>    Affects Versions: 4.3.1
>            Reporter: Venkateswararao Jujjuri
>            Assignee: Venkateswararao Jujjuri
>             Fix For: 4.4.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to