Hi Dennis, readLastConfirmed will read the last confirmed read from bookies and should be used when executing the open ledger call that doesn't recover. If you are executing a regular openLedger call, then getLastAddConfirmed is what you should use, since this is the value read from the corresponding znode in zookeeper.

-Flavio

On Nov 30, 2011, at 10:09 AM, dennis zhuang wrote:

It is strange that if i use getLastAddConfirmed to get the entry id, it's all right.

在 2011年11月30日 下午4:25,dennis zhuang <killme2...@gmail.com>写道:
Hi,everyone

I create a LedgerHandle to write five entires to bookkeeper,then close it and open a new LedgerHandle in recovery mode to read entries from bookkeeper.

I use readLastConfirmed to get the last confirmed entry id for reading,it should return 4 but actually 3.I don't know why this happened?why can't read the last entry?

Anybody help me? Thanks.



--
庄晓丹
Email:        killme2...@gmail.com
伯岩(花名)  bo...@taobao.com
Site:           http://fnil.net

淘宝(中国)软件有限公司 / 产品技术部 / Java中间件




--
庄晓丹
Email:        killme2...@gmail.com
伯岩(花名)  bo...@taobao.com
Site:           http://fnil.net

淘宝(中国)软件有限公司 / 产品技术部 / Java中间件


flavio
junqueira

research scientist

f...@yahoo-inc.com
direct +34 93-183-8828

avinguda diagonal 177, 8th floor, barcelona, 08018, es
phone (408) 349 3300    fax (408) 349 3301

Reply via email to