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
daemon: fix race in config handler #17413
Conversation
305e1be
to
6ad0f25
Compare
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.
Thanks for the contribution! One minor comment.
How did you figure out that "ConfigPatchMutex" shouldn't be serialized? Wondering if there's other fields that should be skipped and whether there's a better way than manually skipping specific fields...
I had prompted this, because "ConfigPatchMutex" isn't a configuration option, it's a mutex used internally inside the daemon to synchronize state. So it doesn't make sense to me that we would try to serialize a synchronization primitive onto the wire. Interesting question though, for instance when I peruse the |
Signed-off-by: Gaurav Genani <h3llix.pvt@gmail.com>
@joestringer That makes sense. We could have embedded structs containing configurations which do not need to be serialized. Simply skipping the struct at the time of mapping. |
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.
Fix LGTM, thanks.
test-me-please Job 'Cilium-PR-K8s-1.16-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, 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.
LGTM now, thanks!
ci-aks failure is likely a variation of the flake #16938. No need to block this PR on the test failures since they are unrelated to the PR. |
Fixes: #17321