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

javamcsapi - MillionRow test fails on Ubuntu 16.04 and 18.04

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 1.2.3
    • None
    • None
    • Ubuntu 16.04, Ubuntu 18.04
    • 2018-21, 2019-01, 2019-02, 2019-03

    Description

      Javamcsapi's MillionRow test fails consistently on Ubuntu operating systems. Debian, CentOS and Windows don't have that issue. I assume some kind of premature garbage collection as it appears around the same number of writeRows() on different Ubuntus.

      See attached detailed test execution log from Ubuntu 18.04.
      Regression test suite output excerpt:

      32: Test command: /home/jens/mariadb-columnstore-api/java/gradlew "-p" "/home/jens/mariadb-columnstore-api/java" "-Pversion=1.2.2" "-Pjava.library.path=/home/jens/mariadb-columnstore-api/build/java" "test"
      32: Test timeout computed to be: 1500
      32: Starting a Gradle Daemon (subsequent builds will be faster)
      32: > Task :compileJava UP-TO-DATE
      32: > Task :processResources NO-SOURCE
      32: > Task :classes UP-TO-DATE
      32: Download https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom
      32: Download https://jcenter.bintray.com/org/mariadb/jdbc/mariadb-java-client/2.1.2/mariadb-java-client-2.1.2.pom
      32: Download https://jcenter.bintray.com/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.pom
      32: Download https://jcenter.bintray.com/org/hamcrest/hamcrest-parent/1.3/hamcrest-parent-1.3.pom
      32: Download https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar
      32: Download https://jcenter.bintray.com/org/mariadb/jdbc/mariadb-java-client/2.1.2/mariadb-java-client-2.1.2.jar
      32: Download https://jcenter.bintray.com/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
      32: > Task :compileTestJava
      32: > Task :processTestResources NO-SOURCE
      32: > Task :testClasses
      32:
      32: > Task :test
      32: terminate called after throwing an instance of 'mcsapi::ColumnStoreServerError'
      32:   what():  Error rolling back BRM
      32:
      32: > Task :test FAILED
      32:
      32: FAILURE: Build failed with an exception.
      32:
      32: * What went wrong:
      32: Execution failed for task ':test'.
      32: > Process 'Gradle Test Executor 1' finished with non-zero exit value 134
      32:   This problem might be caused by incorrect test process configuration.
      32:   Please refer to the test execution section in the user guide at https://docs.gradle.org/4.8/userguide/java_plugin.html#sec:test_execution
      32:
      32: * Try:
      32: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      32:
      32: * Get more help at https://help.gradle.org
      32:
      32: BUILD FAILED in 27s
      32: 3 actionable tasks: 2 executed, 1 up-to-date
      32/36 Test #32: Java_BasicTest .........................***Failed   27.69 sec
      

      It is strange though, that a manually compiled million row test with following example succeeds without errors on the Ubuntus':

      import com.mariadb.columnstore.api.*;
       
      public class MCSAPITest {
       
              public static void main(String[] args) {
              ColumnStoreDriver d = new ColumnStoreDriver();
              ColumnStoreBulkInsert b = d.createBulkInsert("test", "t1", (short)0, 0);
              long rows = 100000000;
              try {
                  for(long i=0; i < rows; i++){
                      b.setColumn(0, i);
                      b.setColumn(1, rows-i);
                      if (i % 1000 == 0){
                         System.out.println(i);
                      }
                      b.writeRow();
                  }
                  b.commit();
              }
              catch (ColumnStoreException e) {
                  b.rollback();
                  e.printStackTrace();
              }
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              LinuxJedi Andrew Hutchings (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.