veita opened a new issue, #11883:
URL: https://github.com/apache/ignite/issues/11883

   Ignite 2.17.0; Java 21.
   
   
`org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi#getEffectiveNodeAddresses` 
doesn't check for `null` values where it should.
   
   
https://github.com/apache/ignite/blob/ignite-2.17/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java#L1301
   
   ```java
       /**
        * Gets the {@code InetAddress}.
        *
        * @return the InetAddress or {@code null} if it is unresolved.
        */
       public final InetAddress getAddress() {
           return holder.getAddress();
       }
   ```
   
   This can lead to NPE during grid startup.
   
   ```
   ERROR 2025-02-17T10:17:11,388Z - 
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi[tcp-disco-sock-reader-[cb7d6682
 
172.19.0.1:52755]-#9768%B88AEA822354783A22E7765675B3298D87F3DF5B%-#9886%B88AEA822354783A22E7765675B3298D87F3DF5B%]
   Runtime error caught during grid runnable execution: Socket reader [id=9977, 
name=tcp-disco-sock-reader-[cb7d6682 
172.19.0.1:52755]-#9768%B88AEA822354783A22E7765675B3298D87F3DF5B%-#9886%B88AEA822354783A22E7765675B3298D87F3DF5B%,
 nodeId=cb7d6682-7aec-4c0e-8db3-59d10b03417a]
   java.lang.NullPointerException: null
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to