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

[stable31] Fix distributing staged stats when not updated three times in a row #14450

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 19, 2025

Backport of PR #14419

The stats were supposed to be distributed once they had changed, but
in practice they were always distributed, as the packet count is
absolute rather than relative. Nevertheless, if the packet count did not
change distributing them would have no effect. The problem could appear
in the (rare) case of the timestamps not being updated three times in a
row, as the distribution algorithm failed if the final timestamp was the
same as the initial timestamp (causing NaN to be set for the packets and
packets lost).

Due to all that now the staged stats are always distributed before being
commited (which is still done when the stats stalled for two seconds),
although the distribution exits early if the timestamps did not change.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu enabled auto-merge February 19, 2025 04:47
@danxuliu danxuliu merged commit 53e61db into stable31 Feb 19, 2025
53 checks passed
@danxuliu danxuliu deleted the backport/14419/stable31 branch February 19, 2025 04:47
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.

1 participant