You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/06/29 20:03:44 UTC

[GitHub] [accumulo] dlmarion commented on a diff in pull request #2794: Wait for server process to notice property changes in MiniAccumuloClusterTest

dlmarion commented on code in PR #2794:
URL: https://github.com/apache/accumulo/pull/2794#discussion_r910367096


##########
minicluster/src/test/java/org/apache/accumulo/minicluster/MiniAccumuloClusterTest.java:
##########
@@ -210,6 +210,11 @@ public void testPerTableClasspath() throws Exception {
     conn.instanceOperations().setProperty(VFS_CONTEXT_CLASSPATH_PROPERTY.getKey() + "cx1",
         jarFile.toURI().toString());
 
+    // Batchwriter is intermittently failing with a constraint violation because the TabletServer
+    // is not seeing the property changes above before the BatchWriter below closes and a
+    // MutationsRejectedException is being thrown.
+    Thread.sleep(5000);

Review Comment:
   It's likely that the test thread will see the configuration change, it's the fact that the TabletServer does *not* see the change before the BatchWriter is used. I might have to move this one test to its own class.



-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org