scylladb / scylladb/scylla-cdc-java

Schema change support

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

base
Dominant language
Java
Stars
32
Forks
23
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Currently, the library handles schema change incorrectly.

Moreover, Driver3SchemaBuilder could be prone to race condition issues:

https://github.com/scylladb/scylla-cdc-java/blob/cf6a7090ac18f5e43da72ee325413940d016b11e/scylla-cdc-driver3/src/main/java/com/scylladb/cdc/cql/driver3/Driver3SchemaBuilder.java#L74

as it is not specified that this read base table schema will be fresh and the same as returned by the queries.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with scylla-cdc-driver3/src/main/java/com/scylladb/cdc/cql/driver3/Driver3SchemaBuilder.java at the referenced line 74, then trace how schema changes are handled and how the base-table schema is read. Determine how to ensure the schema used is correct and fresh under concurrent changes; done means schema changes are handled correctly without the identified race condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.