-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Remove inconsequential code bits in KPO logging #35416
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
Remove inconsequential code bits in KPO logging #35416
Conversation
6d6db6c to
b0aa9c6
Compare
|
marking as draft, need to review what was in #34127 |
|
OK first there was #34127 by @dkim010, which added the "reusing" of the PodLogsConsumer object. But then after that came #34412 by @hussein-awala , which changed the handling of the object. Now, it appears to me, that the forwarding of the logs object does not have any effect. Inside consume_logs, a new consumer object is always created: If that step fails, nothing is done with the consumer object. In that situation, the old consumer object would be returned along with last captured time; but then after that it would just be at most passed back in to consume_logs again, and ignored again. Do you agree @hussein-awala and @dkim010? I think this PR is an appropriate cleanup. KPO logging is now extremely convoluted. One avenue for cleanup is getting rid of some irrelevant |
13c09a3 to
fcd3364
Compare
You are right. I agree with that #34412 made #34127 have no effect.
Would you explain why the |
|
It's not all entirely irrelevant. But some of it is. I'll tag you in the appropriate pr |
hussein-awala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that my PR made #34127 has no effect (by mistake), so we need to add a condition before reading the log to fix the previous PR instead of removing the whole fix.
68ace0e to
b4373e9
Compare
|
@hussein-awala my cleanup in this PR actually does a little more that just remove the the passing around of the logs object. Since passing around the logs object presently has no effect, then it is still appropriate to remove IMHO. My vote would be to merge this now, and then later if someone wants to reintroduce something along the lines of #34127, and with appropriate testing, they can do so after. This would make it cleaner to review anyway, I think. |
We were passing around the `logs` variable (actually PodLogConsumer object) for no reason. And the `termination_timeout` param was not used.
b4373e9 to
5a96834
Compare
We were passing around the
logsvariable (actually PodLogConsumer object) for no reason. And thetermination_timeoutparam was not used.