-
Notifications
You must be signed in to change notification settings - Fork 648
[hft]: Fix queue and ipg stats missing if hft isn't supported #3967
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
Conversation
Signed-off-by: Ze Gan <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the setCounterNameMap method in CounterNameMapUpdater by removing a redundant outer if (gHFTOrch) check. The change simplifies the code without affecting functionality, since the check is already performed in the single-parameter overload that gets called for each counter map entry.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@Pterosaur could you have a sonic-mgmt test to check the counters with HFT enabled and disabled? |
I think the current tests of sonic-mgmt should have covered the HFT "enabled/disabled" case. |
|
sonic-mgmt test: sonic-net/sonic-mgmt#21163 |
Add comprehensive unit tests for CounterNameMapUpdater to verify that counter name maps are correctly written to COUNTERS_DB regardless of HFT (High Frequency Telemetry) support. Tests cover: - QUEUE counter maps without HFT support - Priority Group counter maps without HFT support - Handling of empty OID values - Single counter name map operations These tests verify the fix from sonic-net#3967 that removed the redundant outer 'if (gHFTOrch)' check which was preventing counter registration on platforms without HFT support. Signed-off-by: Prasoon Saurav <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 3967 in repo sonic-net/sonic-swss |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Duplicated #3982 |
What I did
Remove redundant HFT capability conditions in the CounterNameMapUpdater
Why I did it
This redundant HFT will skip the QUEUE and IPG stats if the platform doesn't support HFT
Fix the issue: https://github.com/aristanetworks/sonic-qual.msft/issues/861
How I verified it
Check the PG and QUEUE map are in the COUNTER DB.
Details if related