Skip to content
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

apiextensions/definition: don't implicitly wait for MR informer, we do that ourselves #5034

Merged

Conversation

sttts
Copy link
Contributor

@sttts sttts commented Nov 17, 2023

Description of your changes

cache.GetInformer blocks by default, in a moment when we haven't wired the cancel function yet. We have custom logic to handle the wait for sync further down in the WatchComposedResources func. In contrast, our code handles the context with its cancel function correctly.

This bug has potentially blocked the compositor before , until the informer cleanup in cleanupComposedResourceInformers kicked in after a minute.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added or updated unit tests.
  • Added or updated e2e tests.
  • ~~~Linked a PR or a docs tracking issue to document this change.~~
  • Added backport release-x.y labels to auto-backport this PR.

Need help with this checklist? See the cheat sheet.

…o that ourselves

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@upbound.io>
@sttts sttts requested review from negz and a team as code owners November 17, 2023 13:45
@sttts sttts requested a review from phisco November 17, 2023 13:45
Copy link
Contributor

@phisco phisco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 makes sense

@negz negz merged commit f96a0b7 into crossplane:master Nov 20, 2023
21 checks passed
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants