zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amit jaiswal <amit_...@yahoo.com>
Subject Is it possible to read/write a ledger concurrently
Date Fri, 22 Oct 2010 05:22:08 GMT
Hi,

In BookKeeper documentation, the sample program creates a ledger, writes some 
entries and then *closes* the ledger. Then a client program opens the ledger, 
and reads the entries from it.

Is it possible for program1 to write to a ledger, and program2 to read from the 
ledger at the same time. In BookKeeper code, if a client tries to read from a 
ledger which is not being closed (as per its metadata in zk), then a recovery 
process is started to check for consistency.

Waiting for ledger to get closed can introduce lot of latency at the client 
side. Can somebody explain this functionality?

-regards
Amit

Mime
View raw message