Re: Put while move or split

2012-12-03 Thread Jean-Marc Spaggiari
Thanks all for your comments. I was talking about the 3 minutes period because by default, ZK will have a 3 minute timeout. So if a server crash, it can take up to 3 minutes to Zookeeper to detect that. And in this meantime, the client might not be able to access the impacted regions. So what I w

Re: Put while move or split

2012-12-03 Thread Harsh J
Hey Mike, A move is logical in terms of a region and region servers (i.e. only an ID and a command is passed around), but yes the location of blocks could impact its performance a bit (until a further compaction), but would not prevent availability. On Mon, Dec 3, 2012 at 3:53 PM, Michel Segel w

Re: Put while move or split

2012-12-03 Thread Michel Segel
He could have meant that the region was unavailable for a longer duration. My take is that you could have limited bandwidth, and a very large region on the move. While I don't imagine that it could take that long to move a region, you never know how things are tuned and you could in theory hit a

Re: Put while move or split

2012-12-03 Thread Nicolas Liochon
If a server crashes, its regions will be moved to other servers. So, if a query fails because the region server does not respond, the hbase client will retry as well. The principle is to make the failure transparent to the application using the hbase client. Le 3 déc. 2012 03:53, "Jean-Marc Spaggia

Re: Put while move or split

2012-12-02 Thread ramkrishna vasudevan
Hi Jean Incase of Puts and Scans if the split is in progress it will retry. Suppose before the client gets to know about the split, still if the put is directed with the parent region row key, internally HBase directs it to the correct daughter region. But i am not clear in what you mean by Regio

Re: Put while move or split

2012-12-02 Thread Jean-Marc Spaggiari
Ok. so if on the client side I'm "simply" using Puts, scans and gets fron the HTableInterface, I don't have to worry about that since it will retry. But I still should consider catching exceptions when regions are not available because the region server is down for less than 3 minutes, right? Tha

Re: Put while move or split

2012-12-02 Thread Nicolas Liochon
It's not accessible, but it's more or less transparent (latency impact aside) for the end user: the hbase client will retry the operation. On Sun, Dec 2, 2012 at 11:10 PM, Jean-Marc Spaggiari < jean-m...@spaggiari.org> wrote: > ?

Put while move or split

2012-12-02 Thread Jean-Marc Spaggiari
Hi, When a region is moving or splitting, is it still accessible? Or the region is offline until the operation ends? Thanks, JM