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 2019/05/21 20:38:26 UTC

[GitHub] [accumulo] milleruntime commented on a change in pull request #1164: Fix #1084 partial - IT tests failing on Standalone

milleruntime commented on a change in pull request #1164: Fix #1084 partial - IT tests failing on Standalone
URL: https://github.com/apache/accumulo/pull/1164#discussion_r286210687
 
 

 ##########
 File path: test/src/main/java/org/apache/accumulo/test/functional/ManyWriteAheadLogsIT.java
 ##########
 @@ -71,6 +77,38 @@ protected int defaultTimeoutSeconds() {
     return 10 * 60;
   }
 
+  @Before
+  public void alterConfig() throws Exception {
+    if (getClusterType() == ClusterType.MINI) {
+      return;
+    }
+    try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build()) {
+      InstanceOperations iops = client.instanceOperations();
+      Map<String,String> conf = iops.getSystemConfiguration();
+      majcDelay = conf.get(Property.TSERV_MAJC_DELAY.getKey());
+      walogSize = conf.get(Property.TSERV_WALOG_MAX_SIZE.getKey());
+
+      iops.setProperty(Property.TSERV_MAJC_DELAY.getKey(), "1");
+      iops.setProperty(Property.TSERV_WALOG_MAX_SIZE.getKey(), "1M");
+
+      getClusterControl().stopAllServers(ServerType.TABLET_SERVER);
+      getClusterControl().startAllServers(ServerType.TABLET_SERVER);
+    }
+  }
 
 Review comment:
   Could you just put this in configureMiniCluster()?  Or does it have to be before configureMiniCluster is called?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services