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

[vxlanorch] Ambiguous return code for removeNextHopTunnel #880

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

gord1306
Copy link
Contributor

@gord1306 gord1306 commented May 8, 2019

What I did
If the tunnel is not existed, it should change to return false when remove next hop for a tunnel

Why I did it
For VxlanTunnelOrch::removeNextHopTunnel it both checkt tunnel and nexthop existed or not. But in the checking fail case, the first return true and the second return false

How I verified it
Call rVxlanTunnelOrch::removeNextHopTunnel for a non existed tunnel for testing.

Change to return false when isTunnelExists is fail
@gord1306
Copy link
Contributor Author

gord1306 commented May 9, 2019

Hi @prsunny, I have another question about the return value in addOperation . e.g. VxlanTunnelMapOrch::addOperation, it returns false means the request will not be erased from the queue and retry in next time. Does the retry mechanism have retry count limit? or it always retry? Thanks

@prsunny
Copy link
Collaborator

prsunny commented May 9, 2019

Hi @prsunny, I have another question about the return value in addOperation . e.g. VxlanTunnelMapOrch::addOperation, it returns false means the request will not be erased from the queue and retry in next time. Does the retry mechanism have retry count limit? or it always retry? Thanks

It always retry. That's why some cases, we intentionally return true so as to erase from Queue

@gord1306
Copy link
Contributor Author

gord1306 commented May 9, 2019

Thanks for explaining, @prsunny. I’m wondering if the request is always retried, has it the possibility to cause queue full? If yes, how to process this case.

@prsunny
Copy link
Collaborator

prsunny commented May 9, 2019

Potentially a queue full can happen if all the request are failing. I think it would be abnormal to have a que full of requests that's failing. Mostly we observed some requests fails and it keeps retrying but other requests coming will be processed and freed from queue.

@gord1306
Copy link
Contributor Author

gord1306 commented Jun 2, 2019

retest this please

@lguohan lguohan merged commit 7d0c551 into sonic-net:master Jun 4, 2019
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
* [Vxlan] : adding show vnet/vxlan cmds
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants