Open jarpz opened 5 years ago
I am getting something like this when I try to switch to jdk11 from jdk8:
12:01:41.016 [main] DEBUG org.cassandraunit.utils.EmbeddedCassandraServerHelper - Starting cassandra...
12:01:41.016 [main] DEBUG org.cassandraunit.utils.EmbeddedCassandraServerHelper - Initialization needed
12:01:41.026 [main] INFO org.apache.cassandra.config.YamlConfigurationLoader - Configuration location: file:/prj/famc/spring-boot-update/platform-scenario/svc-county-loan-limit/target/embeddedCassandra/cu-cassandra.yaml
12:01:41.027 [main] DEBUG org.apache.cassandra.config.YamlConfigurationLoader - Loading settings from file:/prj/famc/spring-boot-update/platform-scenario/svc-county-loan-limit/target/embeddedCassandra/cu-cassandra.yaml
12:01:41.317 [main] INFO org.apache.cassandra.config.Config - Node configuration:[allocate_tokens_for_keyspace=null; authenticator=AllowAllAuthenticator; authorizer=AllowAllAuthorizer; auto_bootstrap=true; auto_snapshot=false; back_pressure_enabled=false; back_pressure_strategy=null; batch_size_fail_threshold_in_kb=50; batch_size_warn_threshold_in_kb=5; batchlog_replay_throttle_in_kb=1024; broadcast_address=null; broadcast_rpc_address=null; buffer_pool_use_heap_if_exhausted=true; cas_contention_timeout_in_ms=1000; cdc_enabled=false; cdc_free_space_check_interval_ms=250; cdc_raw_directory=target/embeddedCassandra/cdc; cdc_total_space_in_mb=0; client_encryption_options=
There is a PR that attempts to fix this I believe: https://github.com/jsevellec/cassandra-unit/pull/282
along with the discussion: https://github.com/jsevellec/cassandra-unit/issues/249
When is this getting fixed, i also updated to java11 and embedded server fails to come up
I am also facing the same issue after updating to Java 11. Any updates on when this will be fixed?
Any idea When is this going to be fixed
@jsevellec any update on this . This has been pending from a long time.
I would like to have an update as well.
+1
Any updates?
@jsevellec Any updates on this? Cassandra Unit does not work on any Java version after Java 8 - which also happens to reach End of Life December 2020. There is a PR #282 that claims to resolve the issue that has sat open for almost 2 years.
Similar issues
Hi Guys,
I'm sorry to hear that.
Which version of cassandra-unit are you using? The latest version of cassandra-unit is 4.3.1.0 and is built and tested with java 11... Is this issue still here with this latest version?
Hi Guys,
I'm sorry to hear that.
Which version of cassandra-unit are you using? The latest version of cassandra-unit is 4.3.1.0 and is built and tested with java 11... Is this issue still here with this latest version?
Yes, it is in the latest version. I have just re-verified it using cassandra-unit 4.3.1.0. I get the same exception as in the original post and I get it when running in Windows or a Windows disk mapped to a Linux virtual machine. It seems to work fine when running in Linux on a local disk.
Is this issue the same as #283 ?
Yes it is. It's the combo windows FS + Java 11
And since PR #282 was mentioned to possibly fix this I tried applying the latest Jamm version as well. That does not solve the problem.
@jsevellec It looks to be an issue with dependency versions and Spring Boot.
2.x versions are based on the 3.x DataStax CQL Java Driver, 3.x versions use DataStax Java Driver 4.x
Cassandra Unit 4 looks like it uses the DataStax Java Driver 4.x
, which is incompatible with Spring Boot 2.x
Edit: looks like Spring Boot 2.3.0 will use the 4.x driver. https://spring.io/blog/2020/05/15/spring-boot-2-3-0-available-now
@jsevellec It looks to be an issue with dependency versions and Spring Boot.
2.x versions are based on the 3.x DataStax CQL Java Driver, 3.x versions use DataStax Java Driver 4.x
Cassandra Unit 4 looks like it uses the
DataStax Java Driver 4.x
, which is incompatible with Spring Boot 2.xEdit: looks like Spring Boot 2.3.0 will use the 4.x driver. https://spring.io/blog/2020/05/15/spring-boot-2-3-0-available-now
Cassandra-unit fail since spring-boot 2.2.X where datastax driver was 3.X version, just in spring-boot 2.3.X they upgrade the driver version. The problem with this issue always was using java 11 on windows platforms with 2.2.X spring versions
Regards
CassandraUnit 4.3.1.0 runs an embedded Cassandra 3.11.5. Cassandra 3 requires Java 8. How could CassandraUnit work with Java 11 ?
Any chance this might be resolved in this decade? Can we help?
Csssandra 4 is expected within a month from now
I have a PR of this lib working with the cassandra 4 RC1: https://github.com/jsevellec/cassandra-unit/pull/325
+1
+1
I'm getting a error when embedded cassandra start after upgrade my project to Java 11, otherwise with Java 1.8 works perfectly .
Here my configuration:
My dependencies: