Sounds great, Thanks Rakesh.

Best,
Jaln


On Tue, Jul 1, 2014 at 10:39 PM, Rakesh R <rake...@huawei.com> wrote:

> Hi Jaln,
>
>
> >>>>>>>> getLedgerForEntry(){
> >>>>>>>>     journal.logAddEntry(bb, new NopWriteCallback(), null); }
>
> Writes the 'masterKey' to the journal log file  'masterKey' is the auth
> info, for example 'password' of the ledger.
>
>
> >>>>>>> addEntryInternal(LedgerDescriptor handle, ByteBuffer entry,
> WriteCallback cb, Object ctx){ journal.logAddEntry(entry, cb, ctx); }
>
> Writes the actual data entry to the journal log file. After the successful
> writes, bookie server will send the response back to the BookieClient.
>
>
> Regards,
> Rakesh
>
> -----Original Message-----
> From: Jaln [mailto:valiant...@gmail.com]
> Sent: 02 July 2014 06:02
> To: bookkeeper-dev
> Subject: bookie writes
>
> Hi,
> Can you tell me which function writes the log file on bookie server side?
> I found in Bookie.java, we have two functions to do the logaddentry when
> run the benchmark writes,
>
> getLedgerForEntry(){
> journal.logAddEntry(bb, new NopWriteCallback(), null); }
>
> addEntryInternal(LedgerDescriptor handle, ByteBuffer entry, WriteCallback
> cb, Object ctx){ journal.logAddEntry(entry, cb, ctx); }
>
> Can you plz tell me what's the difference? Which one actually writes the
> log into persistent disk?
> Thanks much.
>
>
> Best,
> Jaln
>



-- 

Genius only means hard-working all one's life

Reply via email to