Skip to content

[stable29] Fix distributing staged stats when not updated three times in a row#14448

Merged
danxuliu merged 2 commits intostable29from
backport/14419/stable29
Feb 19, 2025
Merged

[stable29] Fix distributing staged stats when not updated three times in a row#14448
danxuliu merged 2 commits intostable29from
backport/14419/stable29

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Feb 19, 2025

Backport of PR #14419

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
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 <danxuliu@gmail.com>
@danxuliu danxuliu merged commit 9b5c5d5 into stable29 Feb 19, 2025
46 checks passed
@danxuliu danxuliu deleted the backport/14419/stable29 branch February 19, 2025 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant