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

bug(replication): snapshot cleanup fix in transition to stable sync #4211

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

adiholden
Copy link
Collaborator

@adiholden adiholden commented Nov 27, 2024

The bug:
In case of socket error inside StopFullSyncInThread we would overide the cleanup function in StartStableSyncInThread as we will call it even if the StopFullSyncInThread failed, causing the reset of saver not in his shard thread
The fix:
return error status from StopFullSyncInThread and incase of error dont call StartStableSyncInThread

Signed-off-by: adi_holden <adi@dragonflydb.io>
@kostasrim
Copy link
Contributor

Log file created at: 2024/11/13 15:33:04
Running on machine: 6758aba50ab1
Running duration (h:mm:ss): 0:00:00
Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
F20241113 15:33:04.545290 24188 common.cc:433] Check failed: EngineShard::tlocal() == shard_ (0x27546130200 vs. 0x2754a130300)

@kostasrim
Copy link
Contributor

https://github.com/dragonflydb/dragonfly/actions/runs/11820193387

Signed-off-by: adi_holden <adi@dragonflydb.io>
@adiholden adiholden changed the title WIP: snapshot cleanup bug fix bug(replication): snapshot cleanup fix in transition to stable sync Nov 27, 2024
@adiholden adiholden requested a review from kostasrim November 27, 2024 14:11
Copy link
Contributor

@kostasrim kostasrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adiholden adiholden merged commit 90b4fea into main Nov 28, 2024
14 checks passed
@adiholden adiholden deleted the cleanup_snapshot_bug branch November 28, 2024 06:38
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