diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithAbort.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithAbort.java index d5854d73ac4..4fbbdf7a477 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithAbort.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithAbort.java @@ -89,6 +89,9 @@ public class TestRegionServerCoprocessorExceptionWithAbort { put.add(TEST_FAMILY, ROW, ROW); table.put(put); table.flushCommits(); + // We may need two puts to reliably get an exception + table.put(put); + table.flushCommits(); } catch (IOException e) { threwIOE = true; } finally { diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithRemove.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithRemove.java index eb327e3f820..017902e0caf 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithRemove.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestRegionServerCoprocessorExceptionWithRemove.java @@ -107,6 +107,9 @@ public class TestRegionServerCoprocessorExceptionWithRemove { put.add(TEST_FAMILY, ROW, ROW); table.put(put); table.flushCommits(); + // We may need two puts to reliably get an exception + table.put(put); + table.flushCommits(); } catch (IOException e) { threwIOE = true; } finally {