You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "EdColeman (via GitHub)" <gi...@apache.org> on 2024/05/02 18:43:03 UTC

[PR] Add the host:port information to the monitor service lock [accumulo]

EdColeman opened a new pull request, #4517:
URL: https://github.com/apache/accumulo/pull/4517

   The host:port is added by services to help identify the lock source. This does not replace the http_addr advertisment.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add the host:port information to the monitor service lock [accumulo]

Posted by "cshannon (via GitHub)" <gi...@apache.org>.
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add the host:port information to the monitor service lock [accumulo]

Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon commented on code in PR #4517:
URL: https://github.com/apache/accumulo/pull/4517#discussion_r1589679860


##########
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:
   I should clarify specially i'm referring to using `HostAndPort.fromParts(advertiseHost, livePort)`



-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add the host:port information to the monitor service lock [accumulo]

Posted by "EdColeman (via GitHub)" <gi...@apache.org>.
EdColeman merged PR #4517:
URL: https://github.com/apache/accumulo/pull/4517


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org