You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Roman Puchkovskiy (Jira)" <ji...@apache.org> on 2025/05/30 07:47:00 UTC

[jira] [Commented] (IGNITE-25537) ItMulticastNodeFinderTest fails

    [ https://issues.apache.org/jira/browse/IGNITE-25537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955137#comment-17955137 ] 

Roman Puchkovskiy commented on IGNITE-25537:
--------------------------------------------

In Apache Ignite 2, we do socket.setLoopbackMode(false). This works, but the method is deprecated since Java 14. The deprecation comment suggests to switch to 
socket.setOption(StandardSocketOptions.IP_MULTICAST_LOOP, true/false), but here comes the problem: socket.setOption() is not portable across Java versions. 
socket.setOption(StandardSocketOptions.IP_MULTICAST_LOOP, false) works before Java 14 (for example, in Java 11), but starting with Java 14, it must be socket.setOption(StandardSocketOptions.IP_MULTICAST_LOOP, true). So the fix is to still use socket.setLoopbackMode(false) even though it's deprecated in newer Java versions - as it still works in all Java versions.

> ItMulticastNodeFinderTest fails
> -------------------------------
>
>                 Key: IGNITE-25537
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25537
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Roman Puchkovskiy
>            Assignee: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The corresponding node finder fails to find any nodes in time



--
This message was sent by Atlassian Jira
(v8.20.10#820010)