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

gnmic retries stream subscriptions after INVALID_ARGUMENT error #516

Open
cmcdona2 opened this issue Aug 29, 2024 · 1 comment
Open

gnmic retries stream subscriptions after INVALID_ARGUMENT error #516

cmcdona2 opened this issue Aug 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cmcdona2
Copy link

Hi gnmic devs,

I'm using an OpenConfig server which (reasonably) returns a gRPC INVALID_ARGUMENT / error code 3 error when I request /system/|_@~\\ from it (regardless of whether I'm doing a get or a subscribe, and regardless of the --stream-mode). Using gnmic to make the request, if I use get then I see the INAVLID_ARGUMENT error returned. However, if I use subscribe then I don't see any error. Internally (from within the server) I can see it logs the invalid request every 10s (probably because of the default retry period as per --retry duration ... retry timer for RPCs (default 10s)) and the INVALID_ARGUMENT error that it's returning. I think gnmic should return instead of retrying if it sees that a subscription attempt returned INVALID_ARGUMENT (because the arguments aren't going to become valid on retries).

Thank you,
Colin

@cmcdona2 cmcdona2 changed the title gnmic retries stream subscriptions after Invalid Argument error gnmic retries stream subscriptions after INVALID_ARGUMENT error Aug 29, 2024
@karimra karimra added the enhancement New feature or request label Sep 3, 2024
@karimra
Copy link
Collaborator

karimra commented Sep 3, 2024

Yes, gNMIc does not look into the error code for Subscribe. That's something that can be enhanced.

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

No branches or pull requests

2 participants