This is an automated email from the ASF dual-hosted git repository.

dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 439ea97c7b Made AbstractServer.hostname volatile (#5656)
439ea97c7b is described below

commit 439ea97c7b12487c62f04c57eb8cc362e8bcf5a7
Author: Dave Marion <[email protected]>
AuthorDate: Wed Jun 18 11:42:28 2025 -0400

    Made AbstractServer.hostname volatile (#5656)
    
    The Monitor calls `getMetrics` on each server to get
    their information, and `getMetrics` logs an a message
    if the hostname is `0.0.0.0` and returns an empty
    response. Saw these messages in the gc server log, but
    SimpleGarbageCollector sets the hostname immediately
    after starting the Thrift service in `startStatsService`.
---
 .../base/src/main/java/org/apache/accumulo/server/AbstractServer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java 
b/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java
index 643bf00fda..2b6fd2a360 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java
@@ -71,7 +71,7 @@ public abstract class AbstractServer
   private final MetricSource metricSource;
   private final ServerContext context;
   protected final String applicationName;
-  private String hostname;
+  private volatile String hostname;
   private final String resourceGroup;
   private final Logger log;
   private final ProcessMetrics processMetrics;

Reply via email to