[jira] [Updated] (IGNITE-928) Array out of bounds in IgniteUtils.filterReachable
[ https://issues.apache.org/jira/browse/IGNITE-928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan Veselovsky updated IGNITE-928: --- Assignee: Vladimir Ozerov (was: Ivan Veselovsky) Array out of bounds in IgniteUtils.filterReachable -- Key: IGNITE-928 URL: https://issues.apache.org/jira/browse/IGNITE-928 Project: Ignite Issue Type: Bug Components: general Environment: Ignite 1.0.5 Reporter: Mario Ivankovits Assignee: Vladimir Ozerov Attachments: IGNITE-928.patch There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) {noformat} public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } {noformat} Regards, Mario -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (IGNITE-928) Array out of bounds in IgniteUtils.filterReachable
[ https://issues.apache.org/jira/browse/IGNITE-928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits updated IGNITE-928: Description: There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) {noformat} public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } {noformat} Regards, Mario was: There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } Regards, Mario Array out of bounds in IgniteUtils.filterReachable -- Key: IGNITE-928 URL: https://issues.apache.org/jira/browse/IGNITE-928 Project: Ignite Issue Type: Bug Components: general Environment: Ignite 1.0.5 Reporter: Mario Ivankovits There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) {noformat} public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } {noformat} Regards, Mario -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (IGNITE-928) Array out of bounds in IgniteUtils.filterReachable
[ https://issues.apache.org/jira/browse/IGNITE-928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mario Ivankovits updated IGNITE-928: Description: There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } Regards, Mario was: There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } Regards, Mario Array out of bounds in IgniteUtils.filterReachable -- Key: IGNITE-928 URL: https://issues.apache.org/jira/browse/IGNITE-928 Project: Ignite Issue Type: Bug Components: general Environment: Ignite 1.0.5 Reporter: Mario Ivankovits There is an Array out of bounds exception in IgniteUtils.filterReachable. You ask for list size == 1 and then get(1) instead of get(0) public static ListInetAddress filterReachable(ListInetAddress addrs) { final int reachTimeout = 2000; if (addrs.isEmpty()) return Collections.emptyList(); if (addrs.size() == 1) { if (reachable(addrs.get(1), reachTimeout)) return Collections.singletonList(addrs.get(1)); return Collections.emptyList(); } Regards, Mario -- This message was sent by Atlassian JIRA (v6.3.4#6332)