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

Distinguish between request and drain timeouts #64

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Distinguish between request and drain timeouts #64

merged 1 commit into from
Dec 7, 2023

Conversation

TomaszSlawski-TomTom
Copy link
Contributor

Currently request timeout is also applied to drain node timeout. This is because request gets child ctx with timeout and the same ctx with timeout is passed to drain logic even if there is separate 120s timeout.
To fix it we have to pass main ctx to drain logic and timeouted one to request.

@maksim-paskal
Copy link
Owner

@TomaszSlawski-TomTom thanks for notice that

@maksim-paskal
Copy link
Owner

regression #61

@maksim-paskal maksim-paskal merged commit 9e8424e into maksim-paskal:main Dec 7, 2023
4 checks passed
@maksim-paskal
Copy link
Owner

@TomaszSlawski-TomTom your fix was released, you need to restart all containers in all clusters to apply this

kubectl -n kube-system rollout restart ds aks-node-termination-handler

Thanks!

@TomaszSlawski-TomTom TomaszSlawski-TomTom deleted the patch-1 branch December 7, 2023 16:43
@TomaszSlawski-TomTom
Copy link
Contributor Author

@maksim-paskal Thank you for quick merge :)

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