DomGarguilo commented on code in PR #4662:
URL: https://github.com/apache/accumulo/pull/4662#discussion_r1635023798


##########
test/src/main/java/org/apache/accumulo/test/WriteAfterCloseIT.java:
##########
@@ -156,15 +160,23 @@ private void runTest(TimeType timeType, boolean 
killTservers, long timeout, bool
         try {
           future.get();
         } catch (ExecutionException e) {
+          var cause = e.getCause();
+          while (cause != null && !(cause instanceof TimedOutException)) {
+            cause = cause.getCause();
+          }
+
+          assertNotNull(cause);
           errorCount++;
         }
       }
 
+      boolean expectErrors = timeout > 0;
       if (expectErrors) {
         assertTrue(errorCount > 0);
       } else {
         assertEquals(0, errorCount);
-
+        // give out of order writes that may be on a tserer a chance to run

Review Comment:
   ```suggestion
           // allow potential out-of-order writes on a tserver to run
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to