[RELEASE] Kafka Connect ScyllaDB Sink Connector v1.1.12

i everyone,

We’re happy to announce the release of Kafka Connect ScyllaDB Sink Connector v1.1.12.

This is a feature release. The sink can now take its write timestamp from a record field, recognise deletes that arrive as flagged records rather than tombstones, set a per-record TTL from an absolute expiry field, and report failed writes to a dead-letter queue instead of retrying them forever. It is also now built against Kafka 4.

New features

  • Write timestamp from a record field (#282). scylladb.timestamp.field and scylladb.timestamp.unit, with per-topic timestampField and timestampUnit overrides, let USING TIMESTAMP come from a key, value or header field, including nested paths, for both writes and deletes. Previously the timestamp was always the Kafka record time in milliseconds, so a redelivered older event could overwrite a newer row; with a field-based timestamp it cannot. A record missing the configured field fails. The __timestamp mapping still works but is now deprecated.
  • Kafka offsets as a write timestamp (#323). kafka.offset is available as an opt-in timestamp source for inserts and deletes. The full offset preserves partition ordering across same-millisecond writes, retries and restarts without modulo rollover. It requires stable partitioning and an empty table to start from — both documented in CONFIG.md.
  • Deletes flagged by a field (#288). Some change streams send a delete as a record with a payload, naming the operation in a field such as metadata.op, rather than as a tombstone; the sink used to write those as rows, so deleted rows stayed in ScyllaDB. scylladb.deletes.field and scylladb.deletes.values, with per-topic deletesField and deletesValues, mark such records so they take the tombstone path. This needs scylladb.deletes.enabled. A flagged delete binds only the key, uses the same write timestamp, and skips value-mapped TTL, exactly as a tombstone does; a missing or null field is logged as a warning once per topic and task.
  • Per-record TTL from an absolute expiry field (#289). An __expiration=value.<field> mapping, with an optional expirationOffsetSeconds, sets the TTL for each record from the expiry carried in its payload. The TTL is now bound per record rather than requiring a statement prepared per distinct TTL value.
  • Failed writes go to the dead-letter queue, and retries are bounded (#284). Write failures are now classified: transient ones are retried within scylladb.max.retries (-1 keeps the previous unlimited behaviour), while permission, configuration and mapping errors are treated as fatal and fail the task. Failed records are reported through Connect’s errant record reporter, so a single poison record no longer stalls a task indefinitely.

Bug fixes

  • Connect Date fields are bound by epoch day (#301). A Connect Date holds midnight UTC of its day, but the sink converted it using the worker JVM’s time zone. On a worker behind UTC, such as America/New_York, midnight UTC falls on the previous local day, so date columns were silently written one day early. Conversion is now by epoch day, matching Connect’s own definition regardless of the worker’s zone.
  • Per-topic settings are honoured for topics whose names contain dots (#281).
  • ScyllaDB offsets are restored when sink partitions open (#317).

Compatibility and dependencies

  • Built against Kafka 4.4.0 client libraries, up from 3.9.2 (#250).
  • ScyllaDB Java Driver 4.19.4.0, up from 4.19.2.2 (#256).
  • Jackson 2.23.0, Guava 33.8.0-jre, lz4-java 1.14.1, Confluent common-utils 8.4.1.

Upgrade notes

  • Error handling has changed. Failures that the sink previously retried forever — missing permissions, invalid configuration, bad topic-to-table mappings — now fail the task. This is the intended behaviour, but a task that used to sit in a retry loop may now stop instead, so review your scylladb.max.retries setting and your DLQ configuration before rolling out.
  • Date values may change. If your Connect workers run in a zone behind UTC, date columns were previously written one day early. After upgrading they will be correct, which means new rows will not match the rows written before the upgrade.
  • __timestamp is deprecated in favour of scylladb.timestamp.field; it continues to work for now.

Links

Thanks to @arnabnandy7 and @izhukov1992 for their first contributions to the project.

As always, feel free to report any issues on GitHub.