cshannon commented on code in PR #4517:
URL: https://github.com/apache/accumulo/pull/4517#discussion_r1589668093


##########
server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java:
##########
@@ -485,6 +485,12 @@ public void run() {
       }
     }
     log.debug("Using {} to advertise monitor location in ZooKeeper", 
advertiseHost);
+    try {
+      monitorLock.replaceLockData(

Review Comment:
   it looks like this utility is already called a few lines later so you could 
probably refactor this to call it one time and use that result. 
https://github.com/apache/accumulo/blob/46ed92329cf83911c5b43f348658941e0979f3f9/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java#L495-L496



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