You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by Jaln <va...@gmail.com> on 2014/07/02 02:31:56 UTC
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
Re: bookie writes
Posted by Jaln <va...@gmail.com>.
Sounds great, Thanks Rakesh.
Best,
Jaln
On Tue, Jul 1, 2014 at 10:39 PM, Rakesh R <ra...@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:valiantljk@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
RE: bookie writes
Posted by Rakesh R <ra...@huawei.com>.
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:valiantljk@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