You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schemachanger: support ttl_job_cron parameter in declarative schema changer
Previously, modifying the ttl_job_cron storage parameter required falling
back to the legacy schema changer because the declarative schema changer
had no mechanism to update the TTL scheduled job's cron expression.
This commit adds support for ttl_job_cron by:
1. Adding UpdateTTLScheduleCron as a new deferred mutation operation that
updates the cron expression on the existing TTL scheduled job.
2. Implementing findOldTTLCron in opgen to detect when the cron expression
has changed by comparing the new RowLevelTTL element against the one
being dropped, emitting UpdateTTLScheduleCron only when necessary.
3. Adding UpdateTTLScheduleCron to metadataUpdater which loads the
scheduled job, updates its cron expression, and persists the change.
Release note: None
0 commit comments