Re: Write guarantees and the LAC Protocol

2017-04-06 Thread Enrico Olivelli
Starting from top as I found a good explanation for my "failing" flaky test case. I'm asking to the user list some confirm of my explanation Usecase: 1) 1 single writer, 1 bookie 2) The writer creates a new ledger and writes 1 entry and waits for the acknowledge (addEntry, blocking call), let's

Re: Write guarantees and the LAC Protocol

2017-04-04 Thread Enrico Olivelli
2017-04-04 9:47 GMT+02:00 Enrico Olivelli : > I have completed by debug session and I have an answer. > > The problematic flow is the following: > - LedgerHandler#asyncAddEntry > - in case of BKNotEnoughBookiesException I'm triggering an async callback > (with a

Re: Write guarantees and the LAC Protocol

2017-04-04 Thread Enrico Olivelli
I have completed by debug session and I have an answer. The problematic flow is the following: - LedgerHandler#asyncAddEntry - in case of BKNotEnoughBookiesException I'm triggering an async callback (with a CompletableFuture#handleAsync) which in turn calls LedgerHandler#close - the

Re: Write guarantees and the LAC Protocol

2017-03-17 Thread Enrico Olivelli
2017-03-17 7:48 GMT+01:00 Sijie Guo : > > > On Wed, Mar 15, 2017 at 9:17 AM, Enrico Olivelli > wrote: > >> Hi BookKeepers, >> I'm trying to understand some basic aspect of BookKeeper >> >> I have a strange case, and I would like to have some opinion

Re: Write guarantees and the LAC Protocol

2017-03-17 Thread Sijie Guo
On Wed, Mar 15, 2017 at 9:17 AM, Enrico Olivelli wrote: > Hi BookKeepers, > I'm trying to understand some basic aspect of BookKeeper > > I have a strange case, and I would like to have some opinion from any > "expert". > > I am using BookKeeper as a transaction log for a

Write guarantees and the LAC Protocol

2017-03-15 Thread Enrico Olivelli
Hi BookKeepers, I'm trying to understand some basic aspect of BookKeeper I have a strange case, and I would like to have some opinion from any "expert". I am using BookKeeper as a transaction log for a database, this is an example scenario: 1) the user inserts a record in a table the "fact"