gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

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

Open ruchakulkarni11 opened this issue 11 months ago • 6 comments

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.

ruchakulkarni11 avatar Feb 26 '24 23:02 ruchakulkarni11

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

karimra avatar Mar 04 '24 18:03 karimra

Hi @karimra,

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

ruchakulkarni11 avatar Mar 04 '24 23:03 ruchakulkarni11

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

karimra avatar Mar 04 '24 23:03 karimra

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).

ruchakulkarni11 avatar Mar 08 '24 04:03 ruchakulkarni11

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

karimra avatar Mar 09 '24 22:03 karimra

I am defining multiple subscriptions.

Gnmic is sending the request but there is nothing happening on server side.

On Sat, Mar 9, 2024 at 2:35 PM Karim Radhouani @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/openconfig/gnmic/issues/382#issuecomment-1986998296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHYG55ABRTZ3AVBNQPV2STYXOFDBAVCNFSM6AAAAABD3DUE4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHE4TQMRZGY . You are receiving this because you authored the thread.Message ID: @.***>

-- .

ruchakulkarni11 avatar Mar 09 '24 22:03 ruchakulkarni11