Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8033 JDK 9 support
  3. FLINK-12117

CassandraConnectorITCase fails on Java 9

    XMLWordPrintableJSON

    Details

      Description

      From what I found cassandra never really supported Java 9, so we will likely have to disable the tests in the jdk9 profile.

      java.lang.ExceptionInInitializerError
      	at org.github.jamm.MemoryMeter.measure(MemoryMeter.java:178)
      	at org.apache.cassandra.utils.ObjectSizes.measure(ObjectSizes.java:162)
      	at org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:39)
      	at org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:47)
      	at java.base/java.lang.Class.forName0(Native Method)
      	at java.base/java.lang.Class.forName(Class.java:292)
      	at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:434)
      	at org.apache.cassandra.utils.FBUtilities.instanceOrConstruct(FBUtilities.java:450)
      	at org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:400)
      	at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:353)
      	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119)
      	at org.apache.cassandra.service.StartupChecks$4.execute(StartupChecks.java:167)
      	at org.apache.cassandra.service.StartupChecks.verify(StartupChecks.java:107)
      	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:162)
      	at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:416)
      	at org.apache.flink.streaming.connectors.cassandra.CassandraConnectorITCase$EmbeddedCassandraService.start(CassandraConnectorITCase.java:147)
      	at org.apache.flink.streaming.connectors.cassandra.CassandraConnectorITCase.startCassandra(CassandraConnectorITCase.java:186)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
      	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
      	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
      Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 5
      	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
      	at java.base/java.lang.String.substring(String.java:1885)
      	at org.github.jamm.MemoryLayoutSpecification.getEffectiveMemoryLayoutSpecification(MemoryLayoutSpecification.java:190)
      	at org.github.jamm.MemoryLayoutSpecification.<clinit>(MemoryLayoutSpecification.java:31)
      	... 34 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chesnay Chesnay Schepler
                Reporter:
                chesnay Chesnay Schepler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m