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 0712b2e0c9 Fixed advertise address check for metrics rpc (#5663)
0712b2e0c9 is described below
commit 0712b2e0c90f9cdf3d8762169c90659b97e10979
Author: Dave Marion <[email protected]>
AuthorDate: Fri Jun 20 08:29:19 2025 -0400
Fixed advertise address check for metrics rpc (#5663)
The default value of the bind address changed
recently and this was not updated.
---
.../base/src/main/java/org/apache/accumulo/server/AbstractServer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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 6a236be6ac..7afc7438b9 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
@@ -334,8 +334,7 @@ public abstract class AbstractServer
final FlatBufferBuilder builder = new FlatBufferBuilder(1024);
final MetricResponseWrapper response = new MetricResponseWrapper(builder);
- if (getAdvertiseAddress().toString()
- .startsWith(Property.RPC_PROCESS_BIND_ADDRESS.getDefaultValue())) {
+ if (getAdvertiseAddress() == null) {
log.error(
"Advertise address is not set, this should have been done after
starting the Thrift service.");
return response;