Skip to content

[server] Fix auto partition drop delayed by DAY creation jitter#3174

Open
swuferhong wants to merge 1 commit intoapache:mainfrom
swuferhong:remove-drop-part-jett
Open

[server] Fix auto partition drop delayed by DAY creation jitter#3174
swuferhong wants to merge 1 commit intoapache:mainfrom
swuferhong:remove-drop-part-jett

Conversation

@swuferhong
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3173

The random delay for DAY partitions (0~23 hours) is designed to spread partition creation load, but was incorrectly passed to dropPartitions(), causing expired partitions to linger up to ~23 hours beyond the retention boundary.

Fix by using the actual current time (now) for dropPartitions() instead
of the jitter-delayed createPartitionInstant.

Brief change log

Tests

API and Format

Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[server] Auto partition retention cleanup delayed by DAY partition creation jitter

1 participant