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

Provide callback to decide if nack should be retried #794

Closed
wants to merge 2 commits into from

Conversation

akshaysngupta
Copy link

@akshaysngupta akshaysngupta commented Oct 11, 2023

Currently, when go-control-plane receives a NACK from Envoy, it proceeds by resending the same request again. This causes Envoy to send the NACK causing a never-ending loop.

Some have suggested to that rate limiting Envoy can help but this is not required when it is apparent that error will not go away.

To give implementors ability to select when they want to retry sending the response, This PR adds OnStreamResponseNacked and OnStreamDeltaResponseNacked callbacks which are called when Envoy responds with a NACK for a previous response sent by go-control-plane.

Fixes #46

@akshaysngupta akshaysngupta changed the title Add callback to handle nacks Provide callback to decide if nack should be retried Oct 11, 2023
@akshaysngupta akshaysngupta force-pushed the aksgupta/nacks branch 3 times, most recently from 6a806b2 to 4f6b703 Compare October 11, 2023 18:40
Signed-off-by: Akshay Gupta <[email protected]>
@jpeach
Copy link
Contributor

jpeach commented Oct 17, 2023

I'm not sure about this in principle. If a response is rejected by the client, then isn't the right approach to actually remove the invalid configuration from the cache?

Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

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

Successfully merging this pull request may close these issues.

Avoid repeated push of rejected configuration
2 participants