You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2013/01/13 20:20:34 UTC
svn commit: r1432707 -
/hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Author: liyin
Date: Sun Jan 13 19:20:34 2013
New Revision: 1432707
URL: http://svn.apache.org/viewvc?rev=1432707&view=rev
Log:
[HBASE-7514] Fix the TestLogSplitOnMasterFailover.testWithDistributedLogSplittingAndErrors
Author: manukranthk
Summary: The Test is polling for the .META. table and failing after a certain number of retries with a PreemptiveFastFailException. Catching that exception in the Test since it only knows about RetriesExhaustedException and catches that.
Test Plan: Ensuring that the Unit Tests pass consistently.
Reviewers: liyintang, aaiyer
Reviewed By: aaiyer
CC: hbase-eng@
Differential Revision: https://phabricator.fb.com/D672827
Task ID: 1997870
Modified:
hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Modified: hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=1432707&r1=1432706&r2=1432707&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (original)
+++ hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java Sun Jan 13 19:20:34 2013
@@ -58,6 +58,7 @@ import org.apache.hadoop.hbase.client.HB
import org.apache.hadoop.hbase.client.HConnection;
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.client.NoServerForRegionException;
+import org.apache.hadoop.hbase.client.PreemptiveFastFailException;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.ResultScanner;
@@ -1230,6 +1231,10 @@ TOP_LOOP:
// This function has infinite patience.
Threads.sleepWithoutInterrupt(2000);
continue;
+ } catch (PreemptiveFastFailException ex) {
+ // Be more patient
+ Threads.sleepWithoutInterrupt(2000);
+ continue;
}
Map<String, HRegionInfo[]> regionAssignment =
new HashMap<String, HRegionInfo[]>();