This is an automated email from the ASF dual-hosted git repository. mhubail pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/asterixdb.git
commit fd0f4ce8fe94d2837552d8cf09cdaf27b5a11f2f Author: Michael Blow <michael.b...@couchbase.com> AuthorDate: Fri Aug 30 11:18:04 2019 -0400 [NO ISSUE][*DB][REPL] Identifier comparability of unknown hosts Ensure that replication identifiers comparisons are not influenced by address resolution Change-Id: I6d7aa87777d17a3416d16cfad23b2773b1614a02 Reviewed-on: https://asterix-gerrit.ics.uci.edu/3536 Sonar-Qube: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: Michael Blow <mb...@apache.org> Reviewed-by: Murtadha Hubail <mhub...@apache.org> --- .../main/java/org/apache/asterix/common/storage/ReplicaIdentifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/storage/ReplicaIdentifier.java b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/storage/ReplicaIdentifier.java index 01ffba6..f68ad09 100644 --- a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/storage/ReplicaIdentifier.java +++ b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/storage/ReplicaIdentifier.java @@ -29,7 +29,7 @@ public class ReplicaIdentifier { private ReplicaIdentifier(int partition, InetSocketAddress location) { this.partition = partition; this.location = location; - id = partition + "@" + location.toString(); + id = partition + "@" + location.getHostString() + ":" + location.getPort(); } public static ReplicaIdentifier of(int partition, InetSocketAddress location) {