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

FlowMetrics rate reporting is not multi-thread safe #78

Open
bortok opened this issue May 20, 2022 · 0 comments
Open

FlowMetrics rate reporting is not multi-thread safe #78

bortok opened this issue May 20, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@bortok
Copy link
Contributor

bortok commented May 20, 2022

When calling api.GetMetrics(mr) from multiple go routines (all running as part of waitGroup) the values returned for frames_rx_rate/frames_tx_rate fluctuate between actual rates and 0. This doesn't happen when there is only main thread calling api.GetMetrics(mr).

See this branch to repeat: https://github.com/OpenIxia/otg-demo/tree/getMetricsMultithread/clab/rtbh

Example output is attached
multithread.txt

@arkajyoti-cloud arkajyoti-cloud added the bug Something isn't working label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants