Repository: phoenix
Updated Branches:
  refs/heads/4.14-HBase-0.98 afaaf5e0a -> 044c7309d


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/044c7309
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/044c7309
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/044c7309

Branch: refs/heads/4.14-HBase-0.98
Commit: 044c7309d0c99d8d59c65ba9254266685006e614
Parents: afaaf5e
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:44 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/044c7309/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) {

Reply via email to