You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2020/11/17 21:01:20 UTC
[accumulo] branch main updated: Add back toString() to
TServerInstance
This is an automated email from the ASF dual-hosted git repository.
mmiller 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 7ee4a2d Add back toString() to TServerInstance
7ee4a2d is described below
commit 7ee4a2da58a923543495e9f10b40a5669e92f57c
Author: Mike Miller <mm...@apache.org>
AuthorDate: Tue Nov 17 15:53:12 2020 -0500
Add back toString() to TServerInstance
* There are places in the code that use the toString() in
TServerInstance to write to ZK, one place is WalStateManager but to be
safe need to keep the method since it is difficult to find where string concat
is used
---
.../main/java/org/apache/accumulo/core/metadata/TServerInstance.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/core/src/main/java/org/apache/accumulo/core/metadata/TServerInstance.java b/core/src/main/java/org/apache/accumulo/core/metadata/TServerInstance.java
index eb7e2a3..8ba5860 100644
--- a/core/src/main/java/org/apache/accumulo/core/metadata/TServerInstance.java
+++ b/core/src/main/java/org/apache/accumulo/core/metadata/TServerInstance.java
@@ -88,6 +88,11 @@ public class TServerInstance implements Comparable<TServerInstance> {
return false;
}
+ @Override
+ public String toString() {
+ return hostPortSession;
+ }
+
public String getHostPortSession() {
return hostPortSession;
}