On Mon, Feb 20, 2012 at 9:43 PM, Stack <[email protected]> wrote:

> On Mon, Feb 20, 2012 at 11:58 AM, lars hofhansl <[email protected]>
> wrote:
> > Are there any messages about log replay when you restart the region
> server?
> >
> >
>
> What Lars says', whats it say in the logs on master on restart?
> St.Ack
>

I just noticed that if I restart the master before starting the
regionserver, I still have my rows and I have "recovered.edits" logs in the
master log :

2012-02-21 10:09:55,541 INFO
org.apache.hadoop.hbase.regionserver.wal.HLogSplitter: Closed path hdfs://
lxc167.nightly-dev.com:9100/hbase/.META./1028785192/recovered.edits/0000000000000029079
(wrote
4 edits in 22ms)

During my previous tests, I was doing the following :
- kill datanode
- start datanode
- start regionserver
- restart master (because .META. and -ROOT- were the only regions online):
i did not realize that I could loose any data doing that.

Here are the master logs to both cases :
http://pastebin.com/KD03P0pD : master restart before regionserver
http://pastebin.com/FvYaBMdm : master restart after regionserver

Reply via email to