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

[Support] Retrying done even in case of 4xx error #384

Open
samizzy opened this issue Feb 13, 2023 · 1 comment
Open

[Support] Retrying done even in case of 4xx error #384

samizzy opened this issue Feb 13, 2023 · 1 comment

Comments

@samizzy
Copy link

samizzy commented Feb 13, 2023

I would like to understand the use case for which nakad-java client retries publishing even in case of 4xx errors.

Is this so that a publisher can keep retrying publishing calls until it succeeds? This can be happen if the publisher/owner of event type observes the status codes for publish requests and fixes the event type (auth, schema etc) in time before retry policy expires so the failed calls can succeed. If not then this will just lead to meaning less calls to nakadi which nakadi will always reject, it occupies resources from client as well as from nakadi side.

@samizzy
Copy link
Author

samizzy commented Jun 27, 2023

seems like 422 (atleast one event failed validation) is excluded from retrying so the scenario I described is reduced to 401/403

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

No branches or pull requests

1 participant