Repository: phoenix Updated Branches: refs/heads/4.14-HBase-1.2 a0bd7c34a -> 834f46d41
PHOENIX-4785 Unable to write to table if index is made active during retry (addendum for test) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/834f46d4 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/834f46d4 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/834f46d4 Branch: refs/heads/4.14-HBase-1.2 Commit: 834f46d410ee4e287ac022b49af824f11fcaef12 Parents: a0bd7c3 Author: Vincent Poon <[email protected]> Authored: Fri Oct 12 15:49:39 2018 -0700 Committer: Vincent Poon <[email protected]> Committed: Tue Oct 16 16:21:14 2018 -0700 ---------------------------------------------------------------------- .../org/apache/phoenix/end2end/index/MutableIndexFailureIT.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/834f46d4/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java index aac20ac..46a512f 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexFailureIT.java @@ -423,7 +423,7 @@ public class MutableIndexFailureIT extends BaseTest { private void addRowsInTableDuringRetry(final String tableName) throws SQLException, InterruptedException, ExecutionException { - int threads=10; + int threads=9; boolean wasFailWrite = FailingRegionObserver.FAIL_WRITE; boolean wasToggleFailWriteForRetry = FailingRegionObserver.TOGGLE_FAIL_WRITE_FOR_RETRY; try { @@ -601,6 +601,9 @@ public class MutableIndexFailureIT extends BaseTest { } } } + if (TOGGLE_FAIL_WRITE_FOR_RETRY) { + FAIL_WRITE = !FAIL_WRITE; + } } } if (throwException) {
