joshelser commented on a change in pull request #868: Make replication services 
start when configured
URL: https://github.com/apache/accumulo/pull/868#discussion_r245375994
 
 

 ##########
 File path: server/master/src/main/java/org/apache/accumulo/master/Master.java
 ##########
 @@ -1427,9 +1405,13 @@ public void run() {
 
     final long deadline = System.currentTimeMillis() + MAX_CLEANUP_WAIT_TIME;
     statusThread.join(remaining(deadline));
-    replicationWorkAssigner.join(remaining(deadline));
-    replicationWorkDriver.join(remaining(deadline));
-    replAddress.server.stop();
+    if (!getConfiguration().get(Property.REPLICATION_NAME).isEmpty()) {
 
 Review comment:
   What about always checking if these are non-null and stopping them if they 
are?
   
   Checking the configuration for the property (while it should always be 
accurate) has the potential to introduce a bug where we could just check 
everything and be certain it's all stopped.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to