Skip to content

Wrong-cased date-separator is accepted but ignored #6077

Description

@kennytm

What did you do?

  1. Start a new-arch TiCDC cluster

    tiup playground-ng v8.5.7 --db 1 --kv 1 --pd 1 --tiflash 0 --ticdc 1 --ticdc.config ./ticdc-newarch.toml --without-monitor
  2. Create an S3 changefeed with wrong-cased date-separator

    [sink]
    date-separator = "DAY"
    tiup cdc:v8.5.7 cli changefeed create -c test5854 --sink-uri 's3://test5854/?protocol=canal-json' --config ./test5854.toml
  3. Insert some rows.

What did you expect to see?

Either one of the following:

  • The events are written into a date-separated folder:
    s3://test5854/test/a/468599132522545161/2026-08-24/CDC00000000000000000001.json
    
  • or Step 2 failed with error like
    Error: [CDC:ErrSinkInvalidConfig]sink config invalid: [CDC:ErrStorageSinkInvalidDateSeparator]date separator in storage sink is invalid%!(EXTRA string=DAY)
    

What did you see instead?

The date-seperator is entirely ignored. Files are written to

s3://test5854/test/a/468599132522545161/CDC00000000000000000001.json

Versions of the cluster

v8.5.7

Metadata

Metadata

Assignees

Labels

affects-26.3This bug affects the TiDBX 26.3.x versions.affects-8.5This bug affects the 8.5.x(LTS) versions.severity/moderatetype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions