Skip to content

[fast/warm-reboot] Improve retry mechanism to check if SAI_OBJECT_TYPE_ACL_ENTRY entries are in redis#26

Closed
ayurkiv-nvda wants to merge 2 commits intomasterfrom
warm_reboot_continue_no_exit
Closed

[fast/warm-reboot] Improve retry mechanism to check if SAI_OBJECT_TYPE_ACL_ENTRY entries are in redis#26
ayurkiv-nvda wants to merge 2 commits intomasterfrom
warm_reboot_continue_no_exit

Conversation

@ayurkiv-nvda
Copy link
Copy Markdown
Owner

What I did

Sometimes during /usr/local/bin/neighbor_advertiser script execution, ACL entries are added to redis database with delay.
So during execution of function check_mirror_session_acls() script can't find ACL entries.
Retry mechanism was for this check added in sonic-net#3333
But script will return error and exit with failure after first try.
Need to improve this algorithm.

How I did it

add sleep 0.1 and 'continue' instead of 'exit'

How to verify it

run wr_arp test

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

…E_ACL_ENTRY entries are in redis

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
@ayurkiv-nvda ayurkiv-nvda deleted the warm_reboot_continue_no_exit branch December 3, 2024 14:44
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

Successfully merging this pull request may close these issues.

2 participants