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

Dequeue flags expire after timeout effect #1642

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

werkt
Copy link
Collaborator

@werkt werkt commented Feb 23, 2024

The flag key which contains a timeout for an operation that has been observed in a Queue's Dequeue (atomic safeguard list, either queue or dequeue) must not expire before the time it will be expired, and reasonably not before the time it takes a failsafe period to identify the timeout has elapsed. This was broken in #713, where the original expiry was 2x the configured timeout, and reduced to just the timeout in seconds. We now set the expiry to 1 hour or 10x the timeout, to make unlikely an expiry clearing the flag in a working system. Commented loudly to avoid removing the same padding again.

The flag key which contains a timeout for an operation that has been
observed in a Queue's Dequeue (atomic safeguard list, either queue or
dequeue) must not expire before the time it will be expired, and
reasonably not before the time it takes a failsafe period to identify
the timeout has elapsed. This was broken in bazelbuild#713, where the original
expiry was 2x the configured timeout, and reduced to just the timeout in
seconds. We now set the expiry to 1 hour or 10x the timeout, to make
unlikely an expiry clearing the flag in a working system. Commented
loudly to avoid removing the same padding again.
@werkt werkt merged commit 7ec7fdb into bazelbuild:main Feb 23, 2024
2 checks passed
@werkt werkt deleted the expire-dequeue-flag branch February 23, 2024 02:42
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.

None yet

1 participant