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

Aleksandr Nikolaev commented on IGNITE-29080:
---------------------------------------------

[~dwerner]  thnx for review.

> Fix the TcpDiscoveryVmIpFinderDnsResolveTest for JDK 21
> -------------------------------------------------------
>
>                 Key: IGNITE-29080
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29080
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Aleksandr Nikolaev
>            Assignee: Aleksandr Nikolaev
>            Priority: Minor
>              Labels: ise
>             Fix For: 2.19
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
>   
> [TcpDiscoveryVmIpFinderDnsResolveTest|https://ci2.ignite.apache.org/buildConfiguration/IgniteTests24Java8_RunAllNightly/9369646?expandCode+Inspection=false&expandedTest=build%3A%28id%3A9369576%29%2Cid%3A2000000000]
>  fails on JDK 18+:                                                            
>                                                                               
>                                  
> {code:java}
> ======= Failed test run #1 ==========
>   nameServices
>   ------- Stdout: -------
>   java.lang.NoSuchFieldException: nameServices
>     at java.base/java.lang.Class.getDeclaredField(Class.java:2784)
>     at 
> org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinderDnsResolveTest$INameService.uninstall(TcpDiscoveryVmIpFinderDnsResolveTest.java:577)
>     at 
> org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinderDnsResolveTest.cleanup(TcpDiscoveryVmIpFinderDnsResolveTest.java:85)
>     at 
> java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> {code}
>  The test replaces the DNS resolver via reflection on the internal 
> InetAddress$NameService, which was removed in JDK 18 (JEP 418) and replaced 
> with java.net.spi.InetAddressResolver. 



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

Reply via email to