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

Fix orchagent hang problem caused by erase operation on empty map #348

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

jipanyang
Copy link
Contributor

Signed-off-by: Jipan Yang [email protected]

Please also provide the following information in this pull request:
-->

What I did
Fix orchagent hang problem caused erase operation on empty map

Why I did it

#347
How I verified it

After the change, switch attributes may be set without problem.
swss.rec:

2017-10-13.06:00:03.019460|SWITCH_TABLE:SWITCH_ATTR|SET|fdb_unicast_miss_packet_action:drop|fdb_multicast_miss_packet_action:forward|fdb_broadcast_miss_packet_action:forward
2017-10-13.06:00:21.739177|SWITCH_TABLE:SWITCH_ATTR|SET|fdb_unicast_miss_packet_action:forward|fdb_multicast_miss_packet_action:forward|fdb_broadcast_miss_packet_action:drop

sairedis.rec:

017-10-13.06:00:03.019580|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_FDB_UNICAST_MISS_PACKET_ACTION=SAI_PACKET_ACTION_DROP
2017-10-13.06:00:03.020214|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_FDB_MULTICAST_MISS_PACKET_ACTION=SAI_PACKET_ACTION_FORWARD
2017-10-13.06:00:03.020597|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_FDB_BROADCAST_MISS_PACKET_ACTION=SAI_PACKET_ACTION_FORWARD
2017-10-13.06:00:21.739453|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_FDB_UNICAST_MISS_PACKET_ACTION=SAI_PACKET_ACTION_FORWARD
2017-10-13.06:00:21.740932|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_FDB_MULTICAST_MISS_PACKET_ACTION=SAI_PACKET_ACTION_FORWARD
2017-10-13.06:00:21.742227|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_FDB_BROADCAST_MISS_PACKET_ACTION=SAI_PACKET_ACTION_DROP

Details if related

@stcheng stcheng self-requested a review October 13, 2017 08:45
@jipanyang jipanyang changed the title Fix orchagent hang problem caused erase operation on empty map Fix orchagent hang problem caused by erase operation on empty map Oct 13, 2017
@lguohan lguohan merged commit a4022e2 into sonic-net:master Oct 17, 2017
stcheng pushed a commit that referenced this pull request Oct 17, 2017
@jipanyang jipanyang deleted the switchorch_hang branch June 5, 2018 00:30
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Also add check, that all matched objects must pass view transition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants