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

fix(scaler): resolve possible linkdef loop #237

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Jan 16, 2024

Feature or Problem

This PR resolves a problematic infinite loop when it comes to link scalers. In rare cases it's possible for a link scaler to receive a LinkdefSet event for its own link definition, but when it goes to query the list of link definitions nothing comes back. This is an external problem to wadm, usually manifesting if a host fails to respond in time, but in this case the link scaler will publish a command to set the link definition and then will trigger a LinkdefSet event ➿.

This PR simply shortens this feedback loop to doing what is intended, when a link scaler receives the LinkdefSet event and it matches all of its configuration parameters, it updates its internal status to Deployed.

Related Issues

This is a temporary patch, #206 should make this unnecessary but there's no harm in keeping this logic.

Release Information

v0.10.0

Consumer Impact

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

@brooksmtownsend brooksmtownsend enabled auto-merge (rebase) January 16, 2024 17:22
@brooksmtownsend brooksmtownsend merged commit b30f6e3 into main Jan 16, 2024
5 checks passed
@brooksmtownsend brooksmtownsend deleted the fix/link-efficiency branch January 16, 2024 17:27
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