Remove LogWatch initialization during k8s task shutdown#18579
Closed
capistrant wants to merge 2 commits intoapache:masterfrom
Closed
Remove LogWatch initialization during k8s task shutdown#18579capistrant wants to merge 2 commits intoapache:masterfrom
capistrant wants to merge 2 commits intoapache:masterfrom
Conversation
10 tasks
10 tasks
Contributor
|
Thanks for the PR, @capistrant ! |
Contributor
Author
Maybe we should consolidate the removal into your PR? Might make it easier for someone investigating the change at a later date to only end up at 1 PR with the change and the test for it |
Contributor
|
Sure, @capistrant , I will update the test PR to include the fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Remove unnecessary LogWatch initialization from shutdown() in the K8s work item class. Under normal operations, the peon will already have initialized its LogWatch needed to stream logs. During shutdown it should either not need to create one because it exists, or skip creating it as we are just wanting to push through a shutdown at this point.
#18444 was created to try and mitigate known issues with LogWatch. This added a hacky timeout when trying to persist logs. Instead of doing that song and dance here, I propose we just drop the call to initialize it as the benefit of doing it is not clear to me. Removing it reduces risk of issues in shutdown leading to threads hung in fabric8 code like has been seen in live prod clusters.
Release note
Key changed/added classes in this PR
MyFooOurBarTheirBazThis PR has: