attilakreiner commented on code in PR #10657:
URL: https://github.com/apache/iceberg/pull/10657#discussion_r1670434646


##########
flink/v1.17/flink/src/test/java/org/apache/iceberg/flink/source/TestIcebergSourceWithWatermarkExtractor.java:
##########
@@ -49,50 +51,62 @@
 import org.apache.flink.streaming.api.windowing.windows.TimeWindow;
 import org.apache.flink.table.data.GenericRowData;
 import org.apache.flink.table.data.RowData;
-import org.apache.flink.test.util.MiniClusterWithClientResource;
+import org.apache.flink.test.junit5.InjectMiniCluster;
+import org.apache.flink.test.junit5.MiniClusterExtension;
 import org.apache.flink.util.CloseableIterator;
 import org.apache.flink.util.Collector;
 import org.apache.iceberg.FileFormat;
+import org.apache.iceberg.Table;
 import org.apache.iceberg.data.GenericAppenderHelper;
 import org.apache.iceberg.data.GenericRecord;
 import org.apache.iceberg.data.Record;
-import org.apache.iceberg.flink.HadoopTableResource;
+import org.apache.iceberg.flink.HadoopCatalogExtension;
+import org.apache.iceberg.flink.TableLoader;
 import org.apache.iceberg.flink.TestFixtures;
 import org.apache.iceberg.relocated.com.google.common.collect.ImmutableList;
 import org.apache.iceberg.relocated.com.google.common.collect.ImmutableMap;
 import org.apache.iceberg.relocated.com.google.common.collect.Lists;
 import org.apache.iceberg.relocated.com.google.common.collect.Maps;
 import org.awaitility.Awaitility;
-import org.junit.ClassRule;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.RegisterExtension;
+import org.junit.jupiter.api.io.TempDir;

Review Comment:
   Before I reverted this change, I confirmed that this test was the one 
misbehaving on Java 17. May not be super relevant at this point, but posting 
the repro steps here anyway just FTR:
   
   ```
   $ java -version
   openjdk version "17.0.5" 2022-10-18
   OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8)
   OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode)
   
   $ ./gradlew :iceberg-flink:iceberg-flink-1.17:cleanTest 
:iceberg-flink:iceberg-flink-1.17:test --tests 
TestIcebergSourceWithWatermarkExtractor --no-build-cache
   > Task :iceberg-flink:iceberg-flink-1.17:test FAILED
   TestIcebergSourceWithWatermarkExtractor > initializationError FAILED
       java.lang.IllegalAccessError: class org.apache.flink.util.NetUtils (in 
unnamed module @0x455b6df1) cannot access class sun.net.util.IPAddressUtil (in 
module java.base) because module java.base does not export sun.net.util to 
unnamed module @0x455b6df1
           at 
org.apache.flink.util.NetUtils.unresolvedHostToNormalizedString(NetUtils.java:207)
           at 
org.apache.flink.util.NetUtils.unresolvedHostAndPortToNormalizedString(NetUtils.java:235)
           at 
org.apache.flink.runtime.rpc.akka.AkkaBootstrapTools.startRemoteActorSystem(AkkaBootstrapTools.java:167)
           at 
org.apache.flink.runtime.rpc.akka.AkkaBootstrapTools.startRemoteActorSystem(AkkaBootstrapTools.java:112)
           at 
org.apache.flink.runtime.rpc.akka.AkkaRpcServiceUtils$AkkaRpcServiceBuilder.createAndStart(AkkaRpcServiceUtils.java:358)
           at 
org.apache.flink.runtime.rpc.akka.AkkaRpcServiceUtils$AkkaRpcServiceBuilder.createAndStart(AkkaRpcServiceUtils.java:327)
           at 
org.apache.flink.runtime.rpc.akka.AkkaRpcServiceUtils$AkkaRpcServiceBuilder.createAndStart(AkkaRpcServiceUtils.java:247)
           at 
org.apache.flink.runtime.minicluster.MiniCluster.createRemoteRpcService(MiniCluster.java:1140)
           at 
org.apache.flink.runtime.minicluster.MiniCluster.start(MiniCluster.java:397)
           at 
org.apache.flink.runtime.testutils.MiniClusterResource.startMiniCluster(MiniClusterResource.java:246)
           at 
org.apache.flink.runtime.testutils.MiniClusterResource.before(MiniClusterResource.java:110)
           at 
org.apache.flink.runtime.testutils.InternalMiniClusterExtension.beforeAll(InternalMiniClusterExtension.java:72)
           at 
org.apache.flink.test.junit5.MiniClusterExtension.beforeAll(MiniClusterExtension.java:231)
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to