-
-
Couldn't load subscription status.
- Fork 10.8k
[Bugfix] Fix missing clear_connector_metadata
#25397
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
[Bugfix] Fix missing clear_connector_metadata
#25397
Conversation
Signed-off-by: NickLucche <nlucches@redhat.com>
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.
Code Review
This pull request correctly fixes a bug where clear_connector_metadata was not being called, which could lead to state being leaked between steps. The fix re-introduces the call in the finally block of the _get_kv_connector_output context manager, ensuring proper cleanup. The addition of a new unit test, test_kv_connector_mixin_clears_metadata, is excellent as it specifically verifies that the metadata is cleared, preventing future regressions. The changes are well-implemented and improve the robustness of the KV connector functionality.
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.
LGTM!
Signed-off-by: NickLucche <nlucches@redhat.com>
Signed-off-by: NickLucche <nlucches@redhat.com> Signed-off-by: charlifu <charlifu@amd.com>
Signed-off-by: NickLucche <nlucches@redhat.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
Signed-off-by: NickLucche <nlucches@redhat.com> Signed-off-by: gaojc <1055866782@qq.com>
Signed-off-by: NickLucche <nlucches@redhat.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Signed-off-by: NickLucche <nlucches@redhat.com>
Signed-off-by: NickLucche <nlucches@redhat.com>
Signed-off-by: NickLucche <nlucches@redhat.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
I mistakenly deleted a hook call in some earlier PR of mine, surely breaking some OOT logic.
Thanks @sdavidbd for the ping and sorry!
I also added some new tests to make sure the CI is better equipped to stop me next time :)