Skip to content

Skip running not idle vrrp scripts #2563

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

lukaszwojciechowski
Copy link
Contributor

This is a fix for a bug introduced during refactoring thread functions in: #1626

When a vrrp script is to be run (initially or after specified interval), first it is checked if it's in IDLE state. If not a log message is printed informing about skipping run due to script being either running or timed out. However despite not being idle the code continues to run new script process.

In heavily loaded systems this caused running multiple instances of vrrp script at the same time.

This patch brings back missing return, which was lost during refactoring.

This is a fix for a bug introduced during refactoring thread functions
in: e8e6401
"Thread functions return value is not used so make them void"

When a vrrp script is to be run (initially or after specified interval),
first it is checked if it's in IDLE state. If not a log message is
printed informing about skipping run due to script being either running
or timed out. However despite not being idle the code continues to run
new script process.

In heavily loaded systems this caused running multiple instances of vrrp
script at the same time.

This patch brings back missing return, which was lost during
refactoring.

Signed-off-by: Lukasz Wojciechowski <[email protected]>
@pqarmitage pqarmitage merged commit 309f2b0 into acassen:master Mar 19, 2025
10 checks passed
@pqarmitage
Copy link
Collaborator

@lukaszwojciechowski Many thanks for identifying this issue.

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.

2 participants