You are reading it wrong. The second line you pasted shows how many edits where applied to region test17,,1271654370789 without telling you from which log it was coming from. Your log has edits from all regions, including META and ROOT if present on that RS.
But, do expect data loss on un-rolled logs since that version of HDFS doesn't support fsync. J-D On Mon, Apr 19, 2010 at 8:54 AM, ChingShen <chingshenc...@gmail.com> wrote: > Hi, > > I wrote a sequential put example(300,000 rows, the memstore will not > reach 64MB) to check how does the HLog work. > > 2010-04-19 13:51:25,340 INFO org.apache.hadoop.hbase.regionserver.HLog: * > Roll* /hbase/.logs/52-0980216-01,48562,1271656125926/hlog.dat.1271656125952, > entries=*291111*, calcsize=63753517, filesize=32619925. New hlog > /hbase/.logs/52-0980216-01,48562,1271656125926/hlog.dat.1271656285337 > > After I enter the "kill -9 master_pid" command and restart hbase: > > 2010-04-19 13:53:57,578 DEBUG org.apache.hadoop.hbase.regionserver.Store: > Added hdfs://localhost/hbase/test17/955259787/content/3876923764760772557, > entries=*291065*, sequenceid=32230123, memsize=48.9m, filesize=15.0m to > test17,,1271654370789 > > But why can I only get *291065* rather than *291111* rows? data loss? > > Thanks. > > Shen >