Skip to content

Fix: restore replica output bytes stat update#1486

Merged
enjoy-binbin merged 2 commits into
valkey-io:unstablefrom
uriyage:fix-replica-output-bytes-stat
Dec 25, 2024
Merged

Fix: restore replica output bytes stat update#1486
enjoy-binbin merged 2 commits into
valkey-io:unstablefrom
uriyage:fix-replica-output-bytes-stat

Conversation

@uriyage

@uriyage uriyage commented Dec 24, 2024

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Uri Yagelnik <uriy@amazon.com>
Comment thread tests/integration/replication.tcl Outdated
Co-authored-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: uriyage <78144248+uriyage@users.noreply.github.com>
@codecov

codecov Bot commented Dec 24, 2024

Copy link
Copy Markdown

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
@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 <uriy@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com>
madolson pushed a commit to madolson/valkey that referenced this pull request Jan 7, 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 <uriy@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com>
madolson pushed a commit that referenced this pull request Jan 7, 2025
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

Signed-off-by: Uri Yagelnik <uriy@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com>
kronwerk pushed a commit to kronwerk/valkey that referenced this pull request Jan 27, 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 <uriy@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com>
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