yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.9k stars 1.06k forks source link

[CDCSDK] Enforce relationship between CDC retention gflags #21610

Open es1024 opened 6 months ago

es1024 commented 6 months ago

Jira Link: DB-10503

Description

We currently have a pair of gflags: cdc_wal_retention_time_secs and cdc_intent_retention_ms, but implicitly require that cdc_intent_retention_ms <= cdc_wal_retention_time_secs. This should be made explicit in code (error check/using appropriate values when not true).

Source connector version

n/a

Connector configuration

n/a

YugabyteDB version

No response

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

rthallamko3 commented 6 months ago

cc @hari90 , @suranjan

hari90 commented 6 months ago

This needs a flag callback on both flags that will FATAL if the incorrect value is set. cc @suranjan as its cdcsdk only