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 2018/06/27 20:32:59 UTC

[GitHub] ctubbsii commented on a change in pull request #15: Added random pausing to continuous ingest

ctubbsii commented on a change in pull request #15: Added random pausing to continuous ingest
URL: https://github.com/apache/accumulo-testing/pull/15#discussion_r198628978
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/testing/core/continuous/ContinuousIngest.java
 ##########
 @@ -45,11 +45,43 @@
   private static final byte[] EMPTY_BYTES = new byte[0];
 
   private static List<ColumnVisibility> visibilities;
+  private static long lastPause;
+  private static long pauseWaitMs;
 
   private static ColumnVisibility getVisibility(Random rand) {
     return visibilities.get(rand.nextInt(visibilities.size()));
   }
 
+  private static boolean pauseEnabled(Properties props) {
+    String value = props.getProperty(TestProps.CI_INGEST_PAUSE_ENABLED);
+    return value != null && value.equals("true");
 
 Review comment:
   Could use `return Boolean.parseBoolean(value);` here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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