Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-35837

InitOutputPathTest.testErrorOccursUnSynchronized failed in JDK21

    XMLWordPrintableJSON

Details

    Description

      Jul 13 01:10:17 01:10:17.206 [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.180 s <<< FAILURE! -- in org.apache.flink.core.fs.InitOutputPathTest
      Jul 13 01:10:17 01:10:17.207 [ERROR] org.apache.flink.core.fs.InitOutputPathTest.testErrorOccursUnSynchronized -- Time elapsed: 0.049 s <<< ERROR!
      Jul 13 01:10:17 java.lang.InternalError: java.lang.IllegalAccessException: static final field has no write access: org.apache.flink.core.fs.FileSystem.OUTPUT_DIRECTORY_INIT_LOCK/java.util.concurrent.locks.ReentrantLock/putStatic, from class java.lang.Object (module java.base)
      Jul 13 01:10:17 	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newFieldAccessor(MethodHandleAccessorFactory.java:167)
      Jul 13 01:10:17 	at java.base/jdk.internal.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:145)
      Jul 13 01:10:17 	at java.base/java.lang.reflect.Field.acquireOverrideFieldAccessor(Field.java:1200)
      Jul 13 01:10:17 	at java.base/java.lang.reflect.Field.getOverrideFieldAccessor(Field.java:1169)
      Jul 13 01:10:17 	at java.base/java.lang.reflect.Field.set(Field.java:836)
      Jul 13 01:10:17 	at org.apache.flink.core.fs.InitOutputPathTest.testErrorOccursUnSynchronized(InitOutputPathTest.java:65)
      Jul 13 01:10:17 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      Jul 13 01:10:17 	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
      Jul 13 01:10:17 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
      Jul 13 01:10:17 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
      Jul 13 01:10:17 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
      Jul 13 01:10:17 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
      Jul 13 01:10:17 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
      Jul 13 01:10:17 Caused by: java.lang.IllegalAccessException: static final field has no write access: org.apache.flink.core.fs.FileSystem.OUTPUT_DIRECTORY_INIT_LOCK/java.util.concurrent.locks.ReentrantLock/putStatic, from class java.lang.Object (module java.base)
      Jul 13 01:10:17 	at java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:894)
      Jul 13 01:10:17 	at java.base/java.lang.invoke.MethodHandles$Lookup.unreflectField(MethodHandles.java:3597)
      Jul 13 01:10:17 	at java.base/java.lang.invoke.MethodHandles$Lookup.unreflectSetter(MethodHandles.java:3588)
      Jul 13 01:10:17 	at java.base/java.lang.invoke.MethodHandleImpl$1.unreflectField(MethodHandleImpl.java:1632)
      Jul 13 01:10:17 	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newFieldAccessor(MethodHandleAccessorFactory.java:145)
      Jul 13 01:10:17 	... 12 more
      

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=60900&view=logs&j=d06b80b4-9e88-5d40-12a2-18072cf60528&t=609ecd5a-3f6e-5d0c-2239-2096b155a4d0&l=6489

      Attachments

        Issue Links

          Activity

            People

              gongzhongqiang Zhongqiang Gong
              Weijie Guo Weijie Guo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: