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

Fixing race condition for rif counters #1136 (202205 branch) #1202

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

sumanbrcm
Copy link
Contributor

Changes for 202205 branch

Unit Tests:-
The steps followed are same as in sonic-net/sonic-buildimage#11621

  • Create RIF in SONiC, wait till RIF rates are populated in COUNTERS DB
  • Remove RIF
  • Repeat the steps multiple times and check if any error syslog is seen (No error syslog is seen)
  • Also checked cleanup for rif counters.

After RIF creation derived info of oid for RIF from "COUNTERS_RIF_NAME_MAP"
127) "Vlan100"
128) "oid:0x6000000000aa5"

Checked all the tabled in COUNTER_DB which has same OID in keys
127.0.0.1:6379[2]> keys 6000000000aa5

  1. "RATES:oid:0x6000000000aa5:RIF"
  2. "COUNTERS:oid:0x6000000000aa5"
  3. "RATES:oid:0x6000000000aa5"
    127.0.0.1:6379[2]>

Deleted the RIF by removing the ip on the intf.

Checked COUNTER_DB again with same OID if there are stale entries or not. No stale entries exist now.
127.0.0.1:6379[2]> keys 6000000000aa5
(empty array)
127.0.0.1:6379[2]>
Signed-off-by: Suman Kumar suman.kumar@broadcom.com

@sumanbrcm sumanbrcm changed the title Fixing race condition for rif counters #1136 Fixing race condition for rif counters #1136 (202205 branch) Feb 6, 2023
@sumanbrcm
Copy link
Contributor Author

@prsunny , @Junchao-Mellanox , @kcudnik , @dgsudharsan
Please review this PR.

Please note that the cherry pick in 202205 branch failed for (#1136) , so this PR was needed. All the details are mentioned in this PR.

@yxieca
Copy link
Contributor

yxieca commented Feb 6, 2023

@sumanbrcm can you help look into the test failure?

Changes for 202205 branch

Signed-off-by: Suman Kumar <suman.kumar@broadcom.com>
@sumanbrcm
Copy link
Contributor Author

/azpw run Azure.sonic-sairedis

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-sairedis

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sumanbrcm
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sumanbrcm
Copy link
Contributor Author

/AzurePipelines run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 1202 in repo sonic-net/sonic-sairedis

@sumanbrcm
Copy link
Contributor Author

/azpw run Azure.sonic-sairedis

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-sairedis

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca merged commit 272a8bd into sonic-net:202205 Feb 9, 2023
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.

4 participants