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

Getting response for single subscription when multiple subscriptions are requested through config file with ONCE mode #382

Open
ruchakulkarni11 opened this issue Feb 26, 2024 · 6 comments

Comments

@ruchakulkarni11
Copy link

While sending a subscribe request with multiple subscriptions through the config file, only one subscription is sent to the gnmi-server, and when response received, the rpc is closed. Hence, the other subscription from the input config file is never sent to the gnmi-server.

@karimra
Copy link
Collaborator

karimra commented Mar 4, 2024

This should be solved in v0.36.1, please give it a try.

@ruchakulkarni11
Copy link
Author

Hi @karimra,

Instead of "continue" in the pkg/app/gnmi_client_subscribe.go (line 292), "continue OUTER" is working.

@karimra
Copy link
Collaborator

karimra commented Mar 4, 2024

That tells me the server you are testing this against is not closing the stream after sending a sync_update: true

@ruchakulkarni11
Copy link
Author

I tried closing stream by returning nil, and gnmic is sending next subscription but the gnmi-server is not receiving the next subscribe request (may be because stream is closed).

@karimra
Copy link
Collaborator

karimra commented Mar 9, 2024

Each subscription should start its own stream. Are you defining multiple subscriptions or a single one with multiple paths in your config file ?

@ruchakulkarni11
Copy link
Author

ruchakulkarni11 commented Mar 9, 2024 via email

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

2 participants