Skip to content

feat(w-m): Double-check Azure 404 instanceView#8315

Merged
lotas merged 1 commit intomainfrom
feat/8314-azure-vm-gone-or-still-there-hello-can-you-here-me-major-tom
Feb 25, 2026
Merged

feat(w-m): Double-check Azure 404 instanceView#8315
lotas merged 1 commit intomainfrom
feat/8314-azure-vm-gone-or-still-there-hello-can-you-here-me-major-tom

Conversation

@lotas
Copy link
Contributor

@lotas lotas commented Feb 25, 2026

Looks like it might be eventually consistent and sometimes return 404 when we know the worker was doing something around that time. We can double-check with checking virtualMachines.get if vm is still there. If both return that instance is gone, we remove it. If not, we tolerate up to 2 times for now this inconsistency in scanner's memory and removing if it fails 3 times in a row

Fixes #8314

@lotas lotas requested a review from a team as a code owner February 25, 2026 12:48
@lotas lotas requested review from matt-boris and petemoore and removed request for a team February 25, 2026 12:48
matt-boris
matt-boris previously approved these changes Feb 25, 2026
Copy link
Contributor

@matt-boris matt-boris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool thank you!

Looks like it might be eventually consisistent and sometimes return 404
when we know the worker was doing something around that time. We can
double-check with checking virtualMachines.get if vm is still there. If
both return that instance is gone, we remove it. If not, we tolerate up
to 2 times for now this inconsistency in scanner's memory and removing
if it fails 3 times in a row
@lotas lotas force-pushed the feat/8314-azure-vm-gone-or-still-there-hello-can-you-here-me-major-tom branch from c7f7efd to 1c1d1e6 Compare February 25, 2026 12:58
@lotas lotas enabled auto-merge February 25, 2026 13:10
@lotas lotas merged commit 420ffe6 into main Feb 25, 2026
73 checks passed
@lotas lotas deleted the feat/8314-azure-vm-gone-or-still-there-hello-can-you-here-me-major-tom branch February 25, 2026 13:17
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.

Azure returns 404 in queryInstance() call

2 participants