commit | fd0f4ce8fe94d2837552d8cf09cdaf27b5a11f2f | [log] [tgz] |
---|---|---|
author | Michael Blow <michael.blow@couchbase.com> | Fri Aug 30 11:18:04 2019 -0400 |
committer | Murtadha Hubail <mhubail@apache.org> | Wed Sep 04 15:05:36 2019 +0000 |
tree | 07d464c55bfb08cb28f19b5c077f5d92dc0a73f0 | |
parent | 9554871aaee87a3bd5e528123eca50aa212749af [diff] |
[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 <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Michael Blow <mblow@apache.org> Reviewed-by: Murtadha Hubail <mhubail@apache.org>
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 @@ 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) {