Skip to content

Resolve concurrency problem causing skipping taint by surfacing error and retrying with SQS#1279

Merged
hyeong01 merged 1 commit into
aws:mainfrom
hyeong01:fix-taint-concurrency-failure
Jun 8, 2026
Merged

Resolve concurrency problem causing skipping taint by surfacing error and retrying with SQS#1279
hyeong01 merged 1 commit into
aws:mainfrom
hyeong01:fix-taint-concurrency-failure

Conversation

@hyeong01

@hyeong01 hyeong01 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:
#1277

Description of changes:
As mentioned in the issue above, concurrency problems leads to taint errors. In specific, for situations over 100+ nodes getting de-provisioned simultaneously, 3-6% of nodes fails to be tainted and proceeds to be cordoned. This was due to the taint error not surfacing, and the message disappearing from the queue even without a successful taint. The new change explicitly returns the taint error and fails the pre-drain task so that the failed message can be handled by SQS retry logic.

Also added DeleteSqsMsgIfNodeNotFound condition (passed in as config param) in case the user wants to delete the message if the node is gone, to maintain consistent behavior with postDrain path.

How you tested your changes:
Environment (Linux / Windows):
Locally with unit-tests, e2e run by github workflow.

Verified the fix of #1277 by actually launching +100 instances and interrupting them simultaneously (tested both reproduction of the bug and the fix of the bug).

Kubernetes Version:
1.32

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… and retry with SQS

Co-authored-by: mcornea mcornea@redhat.com
@hyeong01 hyeong01 requested a review from a team as a code owner June 8, 2026 19:57
@Lu-David

Lu-David commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Since you were able to reproduce the original bug, can you also test that this PR fixes the bug? Unit tests and e2e tests won't be enough

@hyeong01 hyeong01 merged commit 5f61b02 into aws:main Jun 8, 2026
10 checks passed
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