commit | b8540f8b9f74c2bcc74174f5d170e3f37ee8c356 | [log] [tgz] |
---|---|---|
author | Abdullah Alamoudi <bamousaa@gmail.com> | Wed Feb 10 19:12:23 2016 +0300 |
committer | abdullah alamoudi <bamousaa@gmail.com> | Thu Feb 11 00:54:58 2016 -0800 |
tree | 5cec70cdc3649e30e244fe0390b02b2cbfda7f61 | |
parent | abf0708ca47ee8238274352b2b3ca7c52dc958a6 [diff] |
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>
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 @@ } 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);