Skip to content

Will informer resync enqueue the older event? #5015

Answered by shawkins
pan3793 asked this question in Q&A
Discussion options

You must be logged in to vote

will the UPDATE event be re-enqueued and handled by the ResourceEventHandler

No, the informer will make only a single attempt at the event processing. It's entirely up to the handler if some retry or secondary queue is maintained.

See a framework like the java operator sdk https://github.com/java-operator-sdk/java-operator-sdk that maintains a retriable event buffer above the informer level.

// should I cache each Pod latest resourceVersion and do a comparison here?

They will only be the same for a resync event.

informer think the event should be re-enqueued during the resync

The internals of the event queue and processing are completely different between the go and java implementat…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@shawkins
Comment options

@pan3793
Comment options

@shawkins
Comment options

@pan3793
Comment options

@shawkins
Comment options

Answer selected by pan3793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants