-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://review.cloudera.org/r/798/#review1110
-----------------------------------------------------------



src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java
<http://review.cloudera.org/r/798/#comment3770>

    Let me make a version of this patch that takes care of rollback -- 
currently rollback expects the lock to be held on entrance; this will not be 
the case post close if above applied.


- stack


On 2010-09-07 10:46:38, Todd Lipcon wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://review.cloudera.org/r/798/
> -----------------------------------------------------------
> 
> (Updated 2010-09-07 10:46:38)
> 
> 
> Review request for hbase and stack.
> 
> 
> Summary
> -------
> 
> Moves all RPCs outside of the region writeLock - the writeLock is now only 
> used long enough to set the 'closing' flag. When we drop the lock any waiters 
> will see 'closing' upon acquiring the lock, and thus throw NSRE.
> 
> In the case that we abort the split, it will reopen the region as before. 
> Accessors will have gotten NSRE but will just come back to the same region 
> eventually.
> 
> 
> This addresses bug HBASE-2964.
>     http://issues.apache.org/jira/browse/HBASE-2964
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java 
> 3507c0d 
> 
> Diff: http://review.cloudera.org/r/798/diff
> 
> 
> Testing
> -------
> 
> YCSB testing on my cluster - it used to deadlock due to this bug within an 
> hour. I ran a 5 hour load test overnight and it worked OK.
> 
> 
> Thanks,
> 
> Todd
> 
>

Reply via email to