Open edeandrea opened 1 year ago
Just to add on - there are messages like this in the logs:
WARN [com.dat.tod.dao.TodoItemHelper__MapperGenerated] (pool-9-thread-1) [s0] There is no ks.table or UDT: todolist.todolist for the entity class: com.datastaxdev.todo.dao.TodoItem, or metadata is out of date.
It seems something isn't creating the keyspace/tablespace at test startup with 2.15 like it was with 2.14.
There's an init_script.cql
file in src/test/resources
that creates the keyspace. Is that somehow not getting picked up?
I don't really know anything about how the Cassandra extension works.
Could be a class loading issue, the init script is loaded here:
Using the context class loader. I bet it's not finding the resource anymore.
I tried copying the CassandraTestResource
class into the application's source tree and removing the if
block and just doing cassandraContainer.withInitScript("init_script.cql");
, then referencing the local class in the @QuarkusTestResource
Doing that did not resolve the issue.
@ragsns and I have a workshop (https://github.com/datastaxdevs/quarkus-astra-intro-demo) that uses the mappers. After upgrading Quarkus from
2.14.3.Final
to2.15.1.Final
(we tried with2.15.0.Final
as well and has the same issue) our app does not work any longer.See https://github.com/datastaxdevs/quarkus-astra-intro-demo/pull/7
Steps to reproduce
main
branch from https://github.com/datastaxdevs/quarkus-astra-intro-demopom.xml
<quarkus.platform.version>2.14.3.Final</quarkus.platform.version>
to<quarkus.platform.version>2.15.1.Final</quarkus.platform.version>
./mvnw clean verify
You can see the full log from our automation at https://github.com/datastaxdevs/quarkus-astra-intro-demo/actions/runs/3759019541/jobs/6388068362
It fails with this error message:
┆Issue is synchronized with this Jira Task by Unito