JanusGraph / janusgraph

JanusGraph: an open-source, distributed graph database
https://janusgraph.org
Other
5.29k stars 1.17k forks source link

Unable to run Cassandra tests #3201

Open Sfurti-yb opened 2 years ago

Sfurti-yb commented 2 years ago

Hi, I am trying to run the cql tests by following the steps mentioned here in the ReadMe.

I am unable to run the tests against Cassandra and am getting the following error for all of the test cases:

[ERROR] testBatchPropertiesPrefetching{int}[5]  Time elapsed: 0.017 s  <<< ERROR!
java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.cql.CQLStoreManager
Caused by: java.lang.reflect.InvocationTargetException
Caused by: com.datastax.oss.driver.api.core.AllNodesFailedException: Could not reach any contact point, make sure you've provided valid addresses (showing first 2 nodes, use getAllErrors() for more): Node(endPoint=localhost/127.0.0.1:64096, hostId=null, hashCode=7bb2470b): [com.datastax.oss.driver.api.core.connection.ConnectionInitException: [JanusGraph Session|control|connecting...] Protocol initialization request, step 1 (OPTIONS): failed to send request (io.netty.channel.StacklessClosedChannelException)], Node(endPoint=localhost/0:0:0:0:0:0:0:1:64096, hostId=null, hashCode=7575b60d): [com.datastax.oss.driver.api.core.connection.ConnectionInitException: [JanusGraph Session|control|connecting...] Protocol initialization request, step 1 (OPTIONS): failed to send request (io.netty.channel.StacklessClosedChannelException)]

I am using Java SE 8, and am able to run the scyllaDB tests.

li-boxuan commented 2 years ago

Do you have the docker daemon running? If so, do you see docker container(s) being created during the test?

Sfurti-yb commented 2 years ago

Yes, the docker daemon is running and I can see the cassandra container being created.

li-boxuan commented 2 years ago

Can you provide the exact command line you used and the branch you are running the command on? I'll try it on my side. I haven't been doing it for a while - I usually use Intellij to run tests and it works just fine.

Sfurti-yb commented 2 years ago

This is the command I am using and running it on the master branch

mvn clean test -pl janusgraph-cql -Pcassandra3-murmur 

I see the cassandra container being created but after a few seconds it exits.

li-boxuan commented 2 years ago

@Sfurti-yb I tried the same command but it worked fine for me. What OS are you on and what is your docker version? Can you try upgrading docker to the latest version?

Also, a dumb suggestion: have you tried rebooting your computer?