cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.17k stars 3.82k forks source link

changefeedccl: give core changefeeds unique identifiers #135221

Open andyyang890 opened 1 week ago

andyyang890 commented 1 week ago

It might be useful to give core changefeeds unique identifiers so that they can be distinguished in logs.

We may want to include this in both the log tags and structured log messages.

Jira issue: CRDB-44404

blathers-crl[bot] commented 1 week ago

cc @cockroachdb/cdc

andyyang890 commented 5 days ago

One idea that we discussed during the team weekly today was using the session ID as the unique identifier. One thing to investigate is whether each core changefeed gets its own unique session ID or if it shares the same session ID as the parent session that it's created in.