scylla-cdc-java icon indicating copy to clipboard operation
scylla-cdc-java copied to clipboard

scylla cdc library failed upon schema change

Open Prateekdecp opened this issue 1 year ago • 2 comments

I am trying to use the scylla cdc driver library for deriving all cdc logs for a table After I added a new column to the existing table, the driver library gave me an error and crashed Method threw 'shaded.com.scylladb.cdc.driver3.driver.core.exceptions.InvalidTypeException' exception. Cannot evaluate com.scylladb.cdc.cql.driver3.Driver3RawChange.toString() Upon restart I started getting the entries as expected. Is there a fix for this?

Prateekdecp avatar Aug 29 '24 17:08 Prateekdecp

I am trying to use the scylla cdc driver library for deriving all cdc logs for a table After I added a new column to the existing table, the driver library gave me an error and crashed Method threw 'shaded.com.scylladb.cdc.driver3.driver.core.exceptions.InvalidTypeException' exception. Cannot evaluate com.scylladb.cdc.cql.driver3.Driver3RawChange.toString() Upon restart I started getting the entries as expected. Is there a fix for this?

@Prateekdecp , can you please provide table definition before and after.

dkropachev avatar Aug 29 '24 18:08 dkropachev

create table temp_keyspace.users(id primary key,name text,phone_number text); Initial table

alter table temp_keyspace.users add email text; altered table

Prateekdecp avatar Aug 29 '24 18:08 Prateekdecp

Depends on https://github.com/scylladb/java-driver/issues/460

dkropachev avatar Mar 11 '25 11:03 dkropachev

@Bouncheck , was this addressed in https://github.com/scylladb/scylla-cdc-java/pull/90 ?

dkropachev avatar Mar 25 '25 10:03 dkropachev

Yes, after the driver update the InvalidTypeException does not appear in this scenario.

Bouncheck avatar Mar 25 '25 10:03 Bouncheck