Amend HBASE-10292. TestRegionServerCoprocessorExceptionWithAbort fails occasionally
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1557436 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1431c22a07
commit
f9a93ec9df
|
@ -89,6 +89,9 @@ public class TestRegionServerCoprocessorExceptionWithAbort {
|
||||||
put.add(TEST_FAMILY, ROW, ROW);
|
put.add(TEST_FAMILY, ROW, ROW);
|
||||||
table.put(put);
|
table.put(put);
|
||||||
table.flushCommits();
|
table.flushCommits();
|
||||||
|
// We may need two puts to reliably get an exception
|
||||||
|
table.put(put);
|
||||||
|
table.flushCommits();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
threwIOE = true;
|
threwIOE = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -107,6 +107,9 @@ public class TestRegionServerCoprocessorExceptionWithRemove {
|
||||||
put.add(TEST_FAMILY, ROW, ROW);
|
put.add(TEST_FAMILY, ROW, ROW);
|
||||||
table.put(put);
|
table.put(put);
|
||||||
table.flushCommits();
|
table.flushCommits();
|
||||||
|
// We may need two puts to reliably get an exception
|
||||||
|
table.put(put);
|
||||||
|
table.flushCommits();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
threwIOE = true;
|
threwIOE = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue