asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amo...@apache.org
Subject incubator-asterixdb-hyracks git commit: Fixed a Bug in the Register Node Work
Date Thu, 11 Feb 2016 09:00:18 GMT
Repository: incubator-asterixdb-hyracks
Updated Branches:
  refs/heads/master abf0708ca -> b8540f8b9


Fixed a Bug in the Register Node Work

When registering a node, in order to allow multiple nodes to
share an ip address, we store them in a map <ipaddress,List<nodeNames>>
However, the way we check for the existence of an entry had a bug in it
which causes the entry to never be found.

Change-Id: I39273c2d72cee0f85187febc9a2b1a6086181e66
Reviewed-on: https://asterix-gerrit.ics.uci.edu/624
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <imaxon@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/commit/b8540f8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/tree/b8540f8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/diff/b8540f8b

Branch: refs/heads/master
Commit: b8540f8b9f74c2bcc74174f5d170e3f37ee8c356
Parents: abf0708
Author: Abdullah Alamoudi <bamousaa@gmail.com>
Authored: Wed Feb 10 19:12:23 2016 +0300
Committer: abdullah alamoudi <bamousaa@gmail.com>
Committed: Thu Feb 11 00:54:58 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/hyracks/control/cc/work/RegisterNodeWork.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/blob/b8540f8b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/work/RegisterNodeWork.java
----------------------------------------------------------------------
diff --git a/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/work/RegisterNodeWork.java
b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/work/RegisterNodeWork.java
index 7ac0641..dd26ea4 100644
--- a/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/work/RegisterNodeWork.java
+++ b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/work/RegisterNodeWork.java
@@ -72,7 +72,7 @@ public class RegisterNodeWork extends SynchronizableWork {
             }
             ncConfiguration = new HashMap<String, String>();
             state.getNCConfig().toMap(ncConfiguration);
-            Set<String> nodes = ipAddressNodeNameMap.get(ipAddress);
+            Set<String> nodes = ipAddressNodeNameMap.get(InetAddress.getByName(ipAddress));
             if (nodes == null) {
                 nodes = new HashSet<String>();
                 ipAddressNodeNameMap.put(InetAddress.getByName(ipAddress), nodes);


Mime
View raw message