-
Notifications
You must be signed in to change notification settings - Fork 5
[release-4.18] [KNI][upstream] nrt: log: return updated generation value for cache #357
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
[release-4.18] [KNI][upstream] nrt: log: return updated generation value for cache #357
Conversation
1231a20
to
0ff8290
Compare
fbf46ba
to
4b94c85
Compare
4b94c85
to
8e09e67
Compare
The logs show misaligned generation value when tackling the same node in overreserve.go and filter.go logs where the former is always up to date while the latter is never updated (generation=0): ``` 1 overreserve.go:310] "NodeTopology podset fingerprint mismatch" logger="nrtcache.resync" generation=3 node="node-1" ... 1 filter.go:202] "invalid topology data" logger="FilterWithNominatedPods.Filter.NodeResourceTopologyMatch" pod="default/test-6f798bf799-tj7bc" pod="default/test-6f798bf799-tj7bc" podUID="f221ce7c-09c9-4462-a67a-95f5fdec3fb7" node="node-1" generation=0 ``` The only cache implementation that defines and uses "generation" is OverReserve thus this commit updates the method GetCachedNRTCopy() to return updated generation value in the returned CachedNRTInfo. Signed-off-by: Shereen Haj <[email protected]> (cherry picked from commit 4bf93e9)
Add a unit test mainly for GetCachedNRTCopy() to verify the returned generation. To help with the verification, make FlushNodes not only report about the new generation (which only updated there) but also return it so we'd be able to compare the values. Signed-off-by: Shereen Haj <[email protected]> (cherry picked from commit ffe2ce2)
/approve this follow the new process we agreed upon in #373 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ffromani, shajmakh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0bffcad
into
openshift-kni:release-4.18
Update RESYNC.log.md to reflect the cherry-picked commits in openshift-kni#357 Signed-off-by: Shereen Haj <[email protected]>
Cherry-pick nrt log fix from upstream and skip commit verification for cherrypick-prefixed branches.