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

NAS-130890 / 24.10-RC.1 / Fix UPS events (by bmeagherix) #14409

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

bugclerk
Copy link
Contributor

@bugclerk bugclerk commented Sep 3, 2024

A recent change (PR #14319) changed the default lock_queue_size from None to 5.

However, ups.dismiss_alerts was calling alert.oneshot_delete 6 times. Further, shortly afterwards it was calling alert.oneshot_create which uses the same lock. Depending upon timing, this could result in the alert.oneshot_create not running.

Rectify(/avoid) by adding a alert.oneshot_bulk_delete, so that ups.dismiss_alerts only needs to make a single call. (This has the added benefit of being slightly more efficient.)

(Choosing backport-24.10-RC.1 because the above mentioned PR was also backported there.)

Original PR: #14391
Jira URL: https://ixsystems.atlassian.net/browse/NAS-130890

@yocalebo yocalebo merged commit f7db8d4 into stable/electriceel Sep 3, 2024
1 of 2 checks passed
@yocalebo yocalebo deleted the NAS-130890-24.10-RC.1 branch September 3, 2024 19:05
@bugclerk
Copy link
Contributor Author

bugclerk commented Sep 3, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants