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

Data loss during cluster fail over. #1158

Open
sgurudarshan opened this issue Dec 10, 2024 · 0 comments
Open

Data loss during cluster fail over. #1158

sgurudarshan opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sgurudarshan
Copy link

What version of redis operator are you using?

redis-operator version: ghcr.io/ot-container-kit/redis-operator/redis-operator:v0.18.1

Does this issue reproduce with the latest release?
yes

What operating system and processor architecture are you using (kubectl version)?

kubectl version
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4

What did you do?

Created sentinel and replication cluster with below configuration.
redis-replication clusterSize = 2
redis-sentinel clusterSize = 3

Node1 contains redis-replication-0, sentinel-0 and sentinel-2 instances.
Node2 contains redis-replication-1 and sentinel-1 instances

Disabled scheduling on Node1. Manually deleted master instance (redis-replication-0). Sentinel elected new master (redis-replication-1) and able to write data.
Enabled scheduling on Node1, when old master instance(redis-replication-0) comes up, data written into master (redis-replication-1) is not present.
Basically data written to master (redis-replication-1) is replaced with old master(redis-replication-0) data.

What did you expect to see?

Data should persist in newly elected master.

What did you see instead?

Data loss in newly elected master.

@sgurudarshan sgurudarshan added the bug Something isn't working label Dec 10, 2024
@drivebyer drivebyer added the help wanted Extra attention is needed label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants