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

Fix: restore replica output bytes stat update #1486

Merged

Conversation

uriyage
Copy link
Contributor

@uriyage uriyage commented Dec 24, 2024

This PR fixes the missing stat update for total_net_repl_output_bytes that was removed during the refactoring in PR #758. The metric was not being updated when writing to replica connections.

Changes:

  • Restored the stat update in postWriteToClient for replica connections
  • Added integration test to verify the metric is properly updated

Co-authored-by: Binbin <[email protected]>
Signed-off-by: uriyage <[email protected]>
Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.82%. Comparing base (9f4503c) to head (e33feee).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1486      +/-   ##
============================================
- Coverage     70.86%   70.82%   -0.05%     
============================================
  Files           119      119              
  Lines         64859    64860       +1     
============================================
- Hits          45963    45934      -29     
- Misses        18896    18926      +30     
Files with missing lines Coverage Δ
src/networking.c 88.23% <100.00%> (-0.12%) ⬇️

... and 12 files with indirect coverage changes

@enjoy-binbin enjoy-binbin merged commit bb325bd into valkey-io:unstable Dec 25, 2024
50 checks passed
@enjoy-binbin enjoy-binbin added the release-notes This issue should get a line item in the release notes label Dec 25, 2024
madolson pushed a commit to madolson/valkey that referenced this pull request Jan 6, 2025
This PR fixes the missing stat update for `total_net_repl_output_bytes`
that was removed during the refactoring in PR valkey-io#758. The metric was not
being updated when writing to replica connections.

Changes:
- Restored the stat update in postWriteToClient for replica connections
- Added integration test to verify the metric is properly updated

Signed-off-by: Uri Yagelnik <[email protected]>
Co-authored-by: Binbin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes This issue should get a line item in the release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants