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

Assert network bytes out for replication slot stat computation is only allowed on primary #847

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

hpatro
Copy link
Collaborator

@hpatro hpatro commented Jul 30, 2024

Added an assertion to avoid incorrect usage of the network bytes out for replication code flow in slot stats computation.

@hpatro
Copy link
Collaborator Author

hpatro commented Jul 30, 2024

Or maybe we can do an early exit if it's not a primary.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.39%. Comparing base (aaa7834) to head (06908e4).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #847      +/-   ##
============================================
+ Coverage     70.35%   70.39%   +0.03%     
============================================
  Files           112      112              
  Lines         61467    61468       +1     
============================================
+ Hits          43248    43272      +24     
+ Misses        18219    18196      -23     
Files Coverage Δ
src/cluster_slot_stats.c 94.04% <100.00%> (+0.03%) ⬆️

... and 11 files with indirect coverage changes

@madolson madolson merged commit 109cc21 into valkey-io:unstable Aug 7, 2024
47 checks passed
mapleFU pushed a commit to mapleFU/valkey that referenced this pull request Aug 22, 2024
…y allowed on primary (valkey-io#847)

Added an assertion to avoid incorrect usage of the network bytes out for
replication code flow in slot stats computation.

Signed-off-by: Harkrishn Patro <[email protected]>
Signed-off-by: mwish <[email protected]>
madolson pushed a commit that referenced this pull request Sep 2, 2024
…y allowed on primary (#847)

Added an assertion to avoid incorrect usage of the network bytes out for
replication code flow in slot stats computation.

Signed-off-by: Harkrishn Patro <[email protected]>
madolson pushed a commit that referenced this pull request Sep 3, 2024
…y allowed on primary (#847)

Added an assertion to avoid incorrect usage of the network bytes out for
replication code flow in slot stats computation.

Signed-off-by: Harkrishn Patro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants