Re: Writes to Journals and fsync

2020-06-02 Thread Unmesh Joshi
>>We have a background thread that performs 'force', in order to group >>commits. >>Please check. Thanks. I see it in the code now. The response callback is invoked only by the ForceWriteThread. >>I suggest you to make benchmarks on your use case. I will try to write a benchmark. I was looking for

Re: Writes to Journals and fsync

2020-06-02 Thread Enrico Olivelli
Il Mar 2 Giu 2020, 17:09 Unmesh Joshi ha scritto: > >>>This sounds strange and you are not the first one that is asking this > question > If the order is changed, writing to journal ahead of writing to ledger, > will it make any difference? > AFAIK it should not make any difference. > >>>The a

Re: Writes to Journals and fsync

2020-06-02 Thread Unmesh Joshi
>>>This sounds strange and you are not the first one that is asking this question If the order is changed, writing to journal ahead of writing to ledger, will it make any difference? >>>The acknowledgement is sent to the client only after a successful fdatasync >>on the journal (if you do not ask

Re: Writes to Journals and fsync

2020-06-02 Thread Enrico Olivelli
Il Mar 2 Giu 2020, 15:20 Unmesh Joshi ha scritto: > Hi, > > I was going through bookkeeper code, particularly to see when and how > transaction logs are written and flushed to disk. > Just curious to understand, why in, Bookie.addEntryInternal method, writes > to journal happen after the writes t