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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ayurkiv-nvda
Copy link
Contributor

@ayurkiv-nvda ayurkiv-nvda commented Sep 20, 2024

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 added for this check in #3333
But the 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>
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.

3 participants