keith-turner commented on a change in pull request #426:
URL: https://github.com/apache/fluo-muchos/pull/426#discussion_r781601391



##########
File path: ansible/roles/accumulo/templates/accumulo-cluster-systemd
##########
@@ -287,26 +292,35 @@ function stop_all() {
   done
   wait
 
+{% if accumulo_version is version('2.1.0','<') %}
   for tracer in $(grep -E -v '(^#|^\s*$)' "${conf}/tracers"); do
     stop_service "$tracer" tracer &
   done
   wait
+{% endif %}
 
   # stop tserver still running
   stop_tservers
 
   echo "Cleaning all server entries in ZooKeeper"
+{% if accumulo_version is version('2.1.0','<') %}
   ${accumulo_cmd} org.apache.accumulo.server.util.ZooZap -master -tservers 
-tracers
+{% else %}
+  ${accumulo_cmd} org.apache.accumulo.server.util.ZooZap -manager -tservers
+{% endif %}
 }
 
 function stop_here() {
   # Determine hostname without errors to user
   hosts_to_check=("$(hostname -a 2> /dev/null | head -1)" "$(hostname -f)")
 
   for host in "${hosts_to_check[@]}"; do
-    for svc in  tserver gc master monitor tracer; do
+    for svc in  tserver gc master monitor; do
       stop_service "$host" "$svc"
     done
+{% if accumulo_version is version('2.1.0','<') %}
+    stop_service "$host" "tracer"
+{% endif %}

Review comment:
       @brianloss I applied this change and when I test if locally it failed... 
looked into it and I had to add and `else ''`




-- 
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