Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1445

mcsapi Java test fails on Ubuntu 18.04 and Java 10

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.5, 1.2.0
    • 1.1.6, 1.2.0
    • None
    • None
    • Ubuntu 18.04, Java 10
    • 2018-11, 2018-12, 2018-13, 2018-14, 2018-15, 2018-16, 2018-17

    Description

      The mcsapi Java test fails with OpenJDK 10 but not with OpenJDK 8.

      jens@ubuntu18:~/mariadb-columnstore-api/java$ ./gradlew test --info
      Initialized native services in: /home/jens/.gradle/native
      Found daemon DaemonInfo{pid=28294, address=[98a7244c-b596-43cf-b5e1-9922c147c724 port:43861, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1527638139838, context=DefaultDaemonContext[uid=1b6950d7-503e-4006-aebd-40fc2724c2f4,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonRegistryDir=/home/jens/.gradle/daemon,pid=28294,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
      Java home is different.
      Wanted: DefaultDaemonContext[uid=null,javaHome=/usr/lib/jvm/java-11-openjdk-amd64,daemonRegistryDir=/home/jens/.gradle/daemon,pid=42953,idleTimeout=null,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
      Actual: DefaultDaemonContext[uid=1b6950d7-503e-4006-aebd-40fc2724c2f4,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonRegistryDir=/home/jens/.gradle/daemon,pid=28294,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
       
        Looking for a different daemon...
      The client will now receive all logging from the daemon (pid: 21430). The daemon log file: /home/jens/.gradle/daemon/4.2.1/daemon-21430.out.log
      Starting 13th build in daemon [uptime: 27 mins 43.387 secs, performance: 99%]
      Using 6 worker leases.
      Creating new cache for fileHashes, path /home/jens/mariadb-columnstore-api/java/.gradle/4.2.1/fileHashes/fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@51e99b4b
      Creating new cache for plugin-use-metadata, path /home/jens/.gradle/caches/4.2.1/plugin-resolution/plugin-use-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@782584bc
      Creating new cache for client-status, path /home/jens/.gradle/caches/4.2.1/plugin-resolution/client-status.bin, access org.gradle.cache.internal.DefaultCacheAccess@782584bc
      Starting Build
      Settings evaluated using settings file '/home/jens/mariadb-columnstore-api/java/settings.gradle'.
      Projects loaded. Root project using build file '/home/jens/mariadb-columnstore-api/java/build.gradle'.
      Included projects: [root project 'javamcsapi']
       
      > Configure project :
      Evaluating root project 'javamcsapi' using build file '/home/jens/mariadb-columnstore-api/java/build.gradle'.
      Creating new cache for metadata-1.1/results, path /home/jens/.gradle/caches/transforms-1/metadata-1.1/results.bin, access org.gradle.cache.internal.DefaultCacheAccess@3b4cbf1f
      Starting process 'command 'git''. Working directory: /home/jens/mariadb-columnstore-api/java Command: git rev-parse --short HEAD
      Successfully started process 'command 'git''
       
      All projects evaluated.
      Selected primary task 'test' from project :
      Creating new cache for annotation-processors, path /home/jens/mariadb-columnstore-api/java/.gradle/4.2.1/fileContent/annotation-processors.bin, access org.gradle.cache.internal.DefaultCacheAccess@3c742da3
      Tasks to be executed: [task ':compileJava', task ':processResources', task ':classes', task ':compileTestJava', task ':processTestResources', task ':testClasses', task ':test']
      Creating new cache for resourceHashesCache, path /home/jens/mariadb-columnstore-api/java/.gradle/4.2.1/fileHashes/resourceHashesCache.bin, access org.gradle.cache.internal.DefaultCacheAccess@51e99b4b
      Creating new cache for fileSnapshots, path /home/jens/mariadb-columnstore-api/java/.gradle/4.2.1/taskHistory/fileSnapshots.bin, access org.gradle.cache.internal.DefaultCacheAccess@2aa85a6
      Creating new cache for taskHistory, path /home/jens/mariadb-columnstore-api/java/.gradle/4.2.1/taskHistory/taskHistory.bin, access org.gradle.cache.internal.DefaultCacheAccess@2aa85a6
      Creating new cache for outputFiles, path /home/jens/mariadb-columnstore-api/java/.gradle/buildOutputCleanup/outputFiles.bin, access org.gradle.cache.internal.DefaultCacheAccess@2abe3201
      :compileJava (Thread[Task worker for ':',5,main]) started.
       
      > Task :compileJava
      Putting task artifact state for task ':compileJava' into context took 0.0 secs.
      Creating new cache for metadata-2.24/module-metadata, path /home/jens/.gradle/caches/modules-2/metadata-2.24/module-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@3270976c
      Creating new cache for metadata-2.24/artifact-at-repository, path /home/jens/.gradle/caches/modules-2/metadata-2.24/artifact-at-repository.bin, access org.gradle.cache.internal.DefaultCacheAccess@3270976c
      Skipping task ':compileJava' as it is up-to-date (took 0.014 secs).
       
      :compileJava (Thread[Task worker for ':',5,main]) completed. Took 0.016 secs.
      :processResources (Thread[Task worker for ':',5,main]) started.
       
      > Task :processResources
      Putting task artifact state for task ':processResources' into context took 0.0 secs.
      file or directory '/home/jens/mariadb-columnstore-api/java/src/main/resources', not found
      Skipping task ':processResources' as it has no source files and no previous output files.
       
      :processResources (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
      :classes (Thread[Task worker for ':',5,main]) started.
       
      > Task :classes
      Skipping task ':classes' as it has no actions.
       
      :classes (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
      :compileTestJava (Thread[Task worker for ':',5,main]) started.
       
      > Task :compileTestJava
      Putting task artifact state for task ':compileTestJava' into context took 0.0 secs.
      Skipping task ':compileTestJava' as it is up-to-date (took 0.007 secs).
       
      :compileTestJava (Thread[Task worker for ':',5,main]) completed. Took 0.008 secs.
      :processTestResources (Thread[Task worker for ':',5,main]) started.
       
      > Task :processTestResources
      Putting task artifact state for task ':processTestResources' into context took 0.0 secs.
      file or directory '/home/jens/mariadb-columnstore-api/java/src/test/resources', not found
      Skipping task ':processTestResources' as it has no source files and no previous output files.
       
      :processTestResources (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
      :testClasses (Thread[Task worker for ':',5,main]) started.
       
      > Task :testClasses
      Skipping task ':testClasses' as it has no actions.
       
      :testClasses (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs.
      :test (Thread[Task worker for ':',5,main]) started.
       
      > Task :test
      Putting task artifact state for task ':test' into context took 0.0 secs.
      Executing task ':test' (up-to-date check took 0.006 secs) due to:
        Task has failed previously.
       
      :test (Thread[Task worker for ':',5,main]) completed. Took 0.012 secs.
       
      FAILURE: Build failed with an exception.
       
      * What went wrong:
      Execution failed for task ':test'.
      > failed to read class file /home/jens/mariadb-columnstore-api/java/build/classes/java/test/com/mariadb/columnstore/api/Common.class
       
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
       
      * Get more help at https://help.gradle.org
       
      BUILD FAILED in 0s
      3 actionable tasks: 1 executed, 2 up-to-date
      

      Attachments

        Activity

          People

            dthompson David Thompson (Inactive)
            jens.rowekamp Jens Röwekamp (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.