client: implement set_db_change_aware#456
Conversation
@dceara could you take a look from ovs side? I found ovsdb stopped sending monitor events, but the connection was not disconnected. |
85aac40 to
a833133
Compare
|
Hi @halfcrazy,
Yes, if the client didn't have "db_change_aware" set, due to https://github.com/openvswitch/ovs/blob/fed82453a0a42085cb9c04c3e7d74ae6199b870e/lib/jsonrpc.c#L1100
I don't see anything obviously wrong in OVS. Maybe @igsilya is a better person to ask an OVSDB expert. Also, logs of what went on might help identify any issues there might be. Thanks, |
The most likely cause is that the client didn't send a new monitor request after the |
|
FWIW, I'm also not sure what this PR is trying to achieve, as implementing change awareness via disconnection doesn't make much sense to me. |
Background is that this lib does not implement So refer to The client using this lib should be disconnected from the server. But from the pcap i don't see a fin or reset. (The echo jsonrpc call still works) reproduce: |
a833133 to
a41cc43
Compare
fix monitor losing event if db schema change and reconnect/inactivity probe cannot handle Signed-off-by: Yan Zhu <hackzhuyan@gmail.com>
Signed-off-by: Yan Zhu <hackzhuyan@gmail.com>
a41cc43 to
eb1ebe4
Compare
fix monitor losing event if db schema change, and reconnect/inactivity probe cannot handle