Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgevents: fix retention_period and disable_cleanup on crdb #46136

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

espadolini
Copy link
Contributor

This PR changes the CRDB row-level TTL configuration in the "pgevents" audit log storage driver to use a count of seconds for the retention_period (rather than using nanoseconds interpreted as microseconds) in such a way that non representable values will result in an error rather than a silent overflow/underflow, and fixes the way we disable row-level TTL (as a result of disable_cleanup).

Fixes #46125

Changelog: fixed retention period handling in the CockroachDB audit log storage backend

@espadolini espadolini added this pull request to the merge queue Sep 3, 2024
Merged via the queue into master with commit fc405b5 Sep 3, 2024
39 checks passed
@espadolini espadolini deleted the espadolini/pgevents-crdb-retention branch September 3, 2024 13:52
@public-teleport-github-review-bot

@espadolini See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pgevents: wrong retention period calculation and no way to disable cleanup on CockroachDB
3 participants