[countersyncd]: resolve object names by template id#211
Merged
Pterosaur merged 2 commits intoAzure:202412from Mar 13, 2026
Merged
[countersyncd]: resolve object names by template id#211Pterosaur merged 2 commits intoAzure:202412from
Pterosaur merged 2 commits intoAzure:202412from
Conversation
Use the current IPFIX data set template ID to resolve the correct\nmessage key and object_names instead of picking an arbitrary key from\ntemporary/applied template maps.\n\nThis avoids misattributing counters when multiple templates or sessions\ncoexist in the same actor.\n\nAdd a regression test covering two template IDs with different\nobject_names in the same input stream.\n\nVerified in CI-like container with:\n cargo test --locked --manifest-path crates/countersyncd/Cargo.toml \\n test_object_names_follow_template_id -- --nocapture Signed-off-by: Ze Gan <ganze718@gmail.com> (cherry picked from commit ad034ddbd69eabbb5049980e397f865741d5d834)
Signed-off-by: Ze Gan <ganze718@gmail.com> (cherry picked from commit 6d66637355f072f50b7acef4ef32755db5b50b16)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
Backported sonic-net/sonic-swss#4316 to the
202412branch.This preserves the template-id keyed object-name resolution fix in
countersyncdfor the 202412 code line.Why I did it
Without this fix, object-name resolution can pick the wrong template context and produce incorrect name association for HFT/IPFIX processing.
How I verified it
Backport was validated as part of the combined 202412
countersyncdstack verification.A merged 202412 build containing the backports of public PRs 4316/4317/4318/4319 was built and deployed to DUT
str4-sn5640-2, then the full HFT regression was run:high_frequency_telemetry/test_high_frequency_telemetry.pytests=14,failures=0,errors=0,skipped=720241212.54Details if related
Source public PR: sonic-net/sonic-swss#4316