Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.14.0
    • Fix Version/s: 1.14.0
    • Component/s: cassandra, core
    • Labels:
      None

      Description

      Cassandra integration tests currently fail as a result of CALCITE-1929.

      testMaterializedView(org.apache.calcite.test.CassandraAdapterIT)  Time elapsed: 0.605 sec  <<< ERROR!
      java.lang.NoClassDefFoundError: org/apache/calcite/rel/type/RelDataTypeFactory$Builder
              at org.apache.calcite.adapter.cassandra.CassandraSchemaFactory.create(CassandraSchemaFactory.java:40)
              at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:214)
              at org.apache.calcite.model.JsonCustomSchema.accept(JsonCustomSchema.java:45)
              at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:143)
              at org.apache.calcite.model.ModelHandler.<init>(ModelHandler.java:85)
              at org.apache.calcite.jdbc.Driver$1.onConnectionInit(Driver.java:104)
              at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:139)
              at java.sql.DriverManager.getConnection(DriverManager.java:664)
              at java.sql.DriverManager.getConnection(DriverManager.java:208)
              at org.apache.calcite.test.CalciteAssert$MapConnectionFactory.createConnection(CalciteAssert.java:1156)
              at org.apache.calcite.test.CalciteAssert$AssertQuery.createConnection(CalciteAssert.java:1195)
              at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1266)
              at org.apache.calcite.test.CalciteAssert$AssertQuery.explainMatches(CalciteAssert.java:1356)
              at org.apache.calcite.test.CalciteAssert$AssertQuery.explainContains(CalciteAssert.java:1351)
              at org.apache.calcite.test.CassandraAdapterIT.testMaterializedView(CassandraAdapterIT.java:167)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              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.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:393)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.ClassNotFoundException: org.apache.calcite.rel.type.RelDataTypeFactory$Builder
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 33 more
      

        Issue Links

          Activity

          Hide
          julianhyde Julian Hyde added a comment -

          Ah, even better, a build error:

          $ mvn -pl cassandra -Pit clean test
          
          [INFO] Scanning for projects...
          [INFO] 
          [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
          [INFO]                                                                         
          [INFO] ------------------------------------------------------------------------
          [INFO] Building Calcite Cassandra 1.14.0-SNAPSHOT
          [INFO] ------------------------------------------------------------------------
          [INFO] 
          [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ calcite-cassandra ---
          [INFO] Deleting /home/jhyde/open1/calcite.4/cassandra/target
          [INFO] 
          [INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ calcite-cassandra ---
          [INFO] Starting audit...
          Audit done.
          [INFO] 
          [INFO] --- build-helper-maven-plugin:1.9:add-resource (add-resource) @ calcite-cassandra ---
          [INFO] 
          [INFO] --- build-helper-maven-plugin:1.9:add-test-resource (add-resource) @ calcite-cassandra ---
          [INFO] 
          [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ calcite-cassandra ---
          [INFO] 
          [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ calcite-cassandra ---
          [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [INFO] skip non existing resourceDirectory /home/jhyde/open1/calcite.4/cassandra/src/main/resources
          [INFO] Copying 2 resources to META-INF
          [INFO] Copying 1 resource to META-INF
          [INFO] 
          [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ calcite-cassandra ---
          [INFO] Changes detected - recompiling the module!
          [INFO] Compiling 15 source files to /home/jhyde/open1/calcite.4/cassandra/target/classes
          [INFO] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java: /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java uses unchecked or unsafe operations.
          [INFO] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java: Recompile with -Xlint:unchecked for details.
          [INFO] -------------------------------------------------------------
          [ERROR] COMPILATION ERROR : 
          [INFO] -------------------------------------------------------------
          [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:[118,29] cannot find symbol
            symbol:   class Builder
            location: interface org.apache.calcite.rel.type.RelDataTypeFactory
          [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java:[137,29] cannot find symbol
            symbol:   class Builder
            location: interface org.apache.calcite.rel.type.RelDataTypeFactory
          [INFO] 2 errors 
          [INFO] -------------------------------------------------------------
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 4.057 s
          [INFO] Finished at: 2017-09-12T11:19:32-08:00
          [INFO] Final Memory: 35M/469M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project calcite-cassandra: Compilation failure: Compilation failure:
          [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:[118,29] cannot find symbol
          [ERROR] symbol:   class Builder
          [ERROR] location: interface org.apache.calcite.rel.type.RelDataTypeFactory
          [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java:[137,29] cannot find symbol
          [ERROR] symbol:   class Builder
          [ERROR] location: interface org.apache.calcite.rel.type.RelDataTypeFactory
          [ERROR] -> [Help 1]
          [ERROR] 
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR] 
          [ERROR] For more information about the errors and possible solutions, please read the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
          
          Show
          julianhyde Julian Hyde added a comment - Ah, even better, a build error: $ mvn -pl cassandra -Pit clean test [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Calcite Cassandra 1.14.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean ( default -clean) @ calcite-cassandra --- [INFO] Deleting /home/jhyde/open1/calcite.4/cassandra/target [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ calcite-cassandra --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-resource (add-resource) @ calcite-cassandra --- [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-test-resource (add-resource) @ calcite-cassandra --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ calcite-cassandra --- [INFO] [INFO] --- maven-resources-plugin:2.7:resources ( default -resources) @ calcite-cassandra --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/jhyde/open1/calcite.4/cassandra/src/main/resources [INFO] Copying 2 resources to META-INF [INFO] Copying 1 resource to META-INF [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile ( default -compile) @ calcite-cassandra --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 15 source files to /home/jhyde/open1/calcite.4/cassandra/target/classes [INFO] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java: /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java uses unchecked or unsafe operations. [INFO] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java: Recompile with -Xlint:unchecked for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:[118,29] cannot find symbol symbol: class Builder location: interface org.apache.calcite.rel.type.RelDataTypeFactory [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java:[137,29] cannot find symbol symbol: class Builder location: interface org.apache.calcite.rel.type.RelDataTypeFactory [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.057 s [INFO] Finished at: 2017-09-12T11:19:32-08:00 [INFO] Final Memory: 35M/469M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile ( default -compile) on project calcite-cassandra: Compilation failure: Compilation failure: [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:[118,29] cannot find symbol [ERROR] symbol: class Builder [ERROR] location: interface org.apache.calcite.rel.type.RelDataTypeFactory [ERROR] /home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java:[137,29] cannot find symbol [ERROR] symbol: class Builder [ERROR] location: interface org.apache.calcite.rel.type.RelDataTypeFactory [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch . [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http: //cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
          Hide
          michaelmior Michael Mior added a comment -

          Strange. I did a clean build successfully several times. Anyway, any suggestions on the right way to fix this?

          Show
          michaelmior Michael Mior added a comment - Strange. I did a clean build successfully several times. Anyway, any suggestions on the right way to fix this?
          Hide
          julianhyde Julian Hyde added a comment -

          And now I can't reproduce this. I think it's due to an old calcite-core.jar on the classpath when compiling the cassandra module.

          Michael Mior, Can you reproduce after a clean and after cleaning out ~/.m2/repository/org/apache/calcite? If not, we should move on.

          Show
          julianhyde Julian Hyde added a comment - And now I can't reproduce this. I think it's due to an old calcite-core.jar on the classpath when compiling the cassandra module. Michael Mior , Can you reproduce after a clean and after cleaning out ~/.m2/repository/org/apache/calcite? If not, we should move on.
          Hide
          michaelmior Michael Mior added a comment -

          Yes, this happens for me consistently.

          Show
          michaelmior Michael Mior added a comment - Yes, this happens for me consistently.
          Hide
          jcamachorodriguez Jesus Camacho Rodriguez added a comment -

          Michael Mior, Julian Hyde, no problem on my end:

          -------------------------------------------------------
           T E S T S
          -------------------------------------------------------
          Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
          Running org.apache.calcite.test.CassandraAdapterIT
          2017-09-13 14:17:38,583 [pool-1-thread-7] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:39,134 [pool-1-thread-7] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,392 [pool-1-thread-7] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,398 [pool-1-thread-7] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:38,583 [pool-1-thread-4] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:39,134 [pool-1-thread-4] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,408 [pool-1-thread-4] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,408 [pool-1-thread-4] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,673 [pool-1-thread-4] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,704 [pool-1-thread-4] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,838 [pool-1-thread-4] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,838 [pool-1-thread-4] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:38,583 [pool-1-thread-8] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:39,134 [pool-1-thread-8] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,389 [pool-1-thread-8] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,401 [pool-1-thread-8] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,655 [pool-1-thread-8] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,770 [pool-1-thread-8] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,863 [pool-1-thread-8] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,863 [pool-1-thread-8] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:38,583 [pool-1-thread-2] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:39,134 [pool-1-thread-2] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,396 [pool-1-thread-2] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,399 [pool-1-thread-2] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,635 [pool-1-thread-2] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,661 [pool-1-thread-2] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,769 [pool-1-thread-2] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,769 [pool-1-thread-2] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:38,583 [pool-1-thread-3] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:39,134 [pool-1-thread-3] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,400 [pool-1-thread-3] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,400 [pool-1-thread-3] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:38,583 [pool-1-thread-6] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:38,666 [pool-1-thread-6] INFO  - Did not find Netty's native epoll transport in the classpath, defaulting to NIO.
          2017-09-13 14:17:39,134 [pool-1-thread-6] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,404 [pool-1-thread-6] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,404 [pool-1-thread-6] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,654 [pool-1-thread-6] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,705 [pool-1-thread-6] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,840 [pool-1-thread-6] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,840 [pool-1-thread-6] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:38,583 [pool-1-thread-5] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:39,134 [pool-1-thread-5] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:39,402 [pool-1-thread-5] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:39,402 [pool-1-thread-5] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,639 [pool-1-thread-7] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,679 [pool-1-thread-7] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,836 [pool-1-thread-7] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,836 [pool-1-thread-7] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,640 [pool-1-thread-3] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,661 [pool-1-thread-3] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,749 [pool-1-thread-3] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,749 [pool-1-thread-3] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,729 [pool-1-thread-5] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,791 [pool-1-thread-5] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:40,892 [pool-1-thread-5] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:40,893 [pool-1-thread-5] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:40,915 [pool-1-thread-8] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:40,937 [pool-1-thread-8] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:41,014 [pool-1-thread-8] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:41,014 [pool-1-thread-8] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          2017-09-13 14:17:41,068 [pool-1-thread-8] INFO  - Using native clock to generate timestamps.
          2017-09-13 14:17:41,083 [pool-1-thread-8] WARN  - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup
          2017-09-13 14:17:41,133 [pool-1-thread-8] INFO  - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
          2017-09-13 14:17:41,133 [pool-1-thread-8] INFO  - New Cassandra host localhost/127.0.0.1:9042 added
          Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.205 sec - in org.apache.calcite.test.CassandraAdapterIT
          
          Results :
          
          Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
          
          Show
          jcamachorodriguez Jesus Camacho Rodriguez added a comment - Michael Mior , Julian Hyde , no problem on my end: ------------------------------------------------------- T E S T S ------------------------------------------------------- Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Running org.apache.calcite.test.CassandraAdapterIT 2017-09-13 14:17:38,583 [pool-1-thread-7] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:39,134 [pool-1-thread-7] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,392 [pool-1-thread-7] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,398 [pool-1-thread-7] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:38,583 [pool-1-thread-4] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:39,134 [pool-1-thread-4] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,408 [pool-1-thread-4] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,408 [pool-1-thread-4] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,673 [pool-1-thread-4] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,704 [pool-1-thread-4] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,838 [pool-1-thread-4] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,838 [pool-1-thread-4] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:38,583 [pool-1-thread-8] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:39,134 [pool-1-thread-8] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,389 [pool-1-thread-8] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,401 [pool-1-thread-8] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,655 [pool-1-thread-8] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,770 [pool-1-thread-8] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,863 [pool-1-thread-8] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,863 [pool-1-thread-8] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:38,583 [pool-1-thread-2] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:39,134 [pool-1-thread-2] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,396 [pool-1-thread-2] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,399 [pool-1-thread-2] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,635 [pool-1-thread-2] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,661 [pool-1-thread-2] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,769 [pool-1-thread-2] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,769 [pool-1-thread-2] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:38,583 [pool-1-thread-3] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:39,134 [pool-1-thread-3] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,400 [pool-1-thread-3] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,400 [pool-1-thread-3] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:38,583 [pool-1-thread-6] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:38,666 [pool-1-thread-6] INFO - Did not find Netty's native epoll transport in the classpath, defaulting to NIO. 2017-09-13 14:17:39,134 [pool-1-thread-6] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,404 [pool-1-thread-6] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,404 [pool-1-thread-6] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,654 [pool-1-thread-6] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,705 [pool-1-thread-6] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,840 [pool-1-thread-6] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,840 [pool-1-thread-6] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:38,583 [pool-1-thread-5] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:39,134 [pool-1-thread-5] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:39,402 [pool-1-thread-5] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:39,402 [pool-1-thread-5] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,639 [pool-1-thread-7] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,679 [pool-1-thread-7] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,836 [pool-1-thread-7] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,836 [pool-1-thread-7] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,640 [pool-1-thread-3] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,661 [pool-1-thread-3] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,749 [pool-1-thread-3] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,749 [pool-1-thread-3] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,729 [pool-1-thread-5] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,791 [pool-1-thread-5] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:40,892 [pool-1-thread-5] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:40,893 [pool-1-thread-5] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:40,915 [pool-1-thread-8] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:40,937 [pool-1-thread-8] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:41,014 [pool-1-thread-8] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:41,014 [pool-1-thread-8] INFO - New Cassandra host localhost/127.0.0.1:9042 added 2017-09-13 14:17:41,068 [pool-1-thread-8] INFO - Using native clock to generate timestamps. 2017-09-13 14:17:41,083 [pool-1-thread-8] WARN - You listed localhost/0:0:0:0:0:0:0:1:9042 in your contact points, but it wasn't found in the control host's system.peers at startup 2017-09-13 14:17:41,133 [pool-1-thread-8] INFO - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy ( if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 2017-09-13 14:17:41,133 [pool-1-thread-8] INFO - New Cassandra host localhost/127.0.0.1:9042 added Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.205 sec - in org.apache.calcite.test.CassandraAdapterIT Results : Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
          Hide
          michaelmior Michael Mior added a comment -

          This keeps getting stranger. I tried again after also purging the Cassandra driver from my local Maven repository. Now I get the following failure instead which suggests materialized view query rewriting is failing.

          Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.146 sec <<< FAILURE! - in org.apache.calcite.test.CassandraAdapterIT
          testMaterializedView(org.apache.calcite.test.CassandraAdapterIT)  Time elapsed: 5.798 sec  <<< FAILURE!
          java.lang.AssertionError:
          
          Expected: a string containing "CassandraTableScan(table=[[twissandra, tweets_by_user]])"
               but: was "PLAN=EnumerableCalc(expr#0..2=[{inputs}], expr#3=['JmuhsAaMdw'], expr#4=[=($t2, $t3)], tweet_id=[$t0], $condition=[$t4])
            CassandraToEnumerableConverter
              CassandraTableScan(table=[[twissandra, tweets]])
          
          "
                  at org.apache.calcite.test.CassandraAdapterIT.testMaterializedView(CassandraAdapterIT.java:167)
          
          
          Results :
          
          Failed tests:
            CassandraAdapterIT.testMaterializedView:167
          Expected: a string containing "CassandraTableScan(table=[[twissandra, tweets_by_user]])"
               but: was "PLAN=EnumerableCalc(expr#0..2=[{inputs}], expr#3=['JmuhsAaMdw'], expr#4=[=($t2, $t3)], tweet_id=[$t0], $condition=[$t4])
            CassandraToEnumerableConverter
              CassandraTableScan(table=[[twissandra, tweets]])
          
          "
          
          Tests run: 11, Failures: 1, Errors: 0, Skipped: 0
          
          Show
          michaelmior Michael Mior added a comment - This keeps getting stranger. I tried again after also purging the Cassandra driver from my local Maven repository. Now I get the following failure instead which suggests materialized view query rewriting is failing. Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.146 sec <<< FAILURE! - in org.apache.calcite.test.CassandraAdapterIT testMaterializedView(org.apache.calcite.test.CassandraAdapterIT) Time elapsed: 5.798 sec <<< FAILURE! java.lang.AssertionError: Expected: a string containing "CassandraTableScan(table=[[twissandra, tweets_by_user]])" but: was "PLAN=EnumerableCalc(expr#0..2=[{inputs}], expr#3=['JmuhsAaMdw'], expr#4=[=($t2, $t3)], tweet_id=[$t0], $condition=[$t4]) CassandraToEnumerableConverter CassandraTableScan(table=[[twissandra, tweets]]) " at org.apache.calcite.test.CassandraAdapterIT.testMaterializedView(CassandraAdapterIT.java:167) Results : Failed tests: CassandraAdapterIT.testMaterializedView:167 Expected: a string containing "CassandraTableScan(table=[[twissandra, tweets_by_user]])" but: was "PLAN=EnumerableCalc(expr#0..2=[{inputs}], expr#3=['JmuhsAaMdw'], expr#4=[=($t2, $t3)], tweet_id=[$t0], $condition=[$t4]) CassandraToEnumerableConverter CassandraTableScan(table=[[twissandra, tweets]]) " Tests run: 11, Failures: 1, Errors: 0, Skipped: 0
          Hide
          jcamachorodriguez Jesus Camacho Rodriguez added a comment -

          Michael Mior, I cannot reproduce the problem that you describe above (even after cleaning everything, building from scratch, etc.).

          Show
          jcamachorodriguez Jesus Camacho Rodriguez added a comment - Michael Mior , I cannot reproduce the problem that you describe above (even after cleaning everything, building from scratch, etc.).

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              michaelmior Michael Mior
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development