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

Print an empty primary log when primary lost its last slot #1064

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

enjoy-binbin
Copy link
Member

The one in CLUSTER SETSLOT help us keep track of state better,
of course it also can make the test case happy.

The one in gossip process fixes a problem that a replica can
print a log saying it is an empty primary.

The one in CLUSTER SETSLOT help us keep track of state better,
of course it also can make the test case happy.

The one in gossip process fixes a problem that a replica can
print a log saying it is an empty primary.

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

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 70.44%. Comparing base (d07c297) to head (694176a).
Report is 1 commits behind head on unstable.

Files with missing lines Patch % Lines
src/cluster_legacy.c 66.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1064      +/-   ##
============================================
- Coverage     70.60%   70.44%   -0.16%     
============================================
  Files           114      114              
  Lines         61673    61677       +4     
============================================
- Hits          43544    43451      -93     
- Misses        18129    18226      +97     
Files with missing lines Coverage Δ
src/cluster_legacy.c 86.09% <66.66%> (-0.05%) ⬇️

... and 11 files with indirect coverage changes

@enjoy-binbin enjoy-binbin merged commit 56fba56 into valkey-io:unstable Sep 23, 2024
47 checks passed
@enjoy-binbin enjoy-binbin deleted the add_log branch September 23, 2024 05:14
madolson pushed a commit to madolson/valkey that referenced this pull request Sep 30, 2024
…#1064)

The one in CLUSTER SETSLOT help us keep track of state better,
of course it also can make the test case happy.

The one in gossip process fixes a problem that a replica can
print a log saying it is an empty primary.

Signed-off-by: Binbin <[email protected]>
Co-authored-by: Ping Xie <[email protected]>
naglera pushed a commit to naglera/placeholderkv that referenced this pull request Oct 10, 2024
…#1064)

The one in CLUSTER SETSLOT help us keep track of state better,
of course it also can make the test case happy.

The one in gossip process fixes a problem that a replica can
print a log saying it is an empty primary.

Signed-off-by: Binbin <[email protected]>
Co-authored-by: Ping Xie <[email protected]>
Signed-off-by: naglera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants