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

Fix slave can't execute publish command #238

Merged

Conversation

karelrooted
Copy link
Contributor

No description provided.

@karelrooted
Copy link
Contributor Author

karelrooted commented Apr 30, 2021

do we need a new way to implement pub/sub without rely on wal replication ? the current solution write to db cause wal seq to increase (have some feedback from user that it sometimes cause a fullsync when a redis-sentinel failover is trigged, cause by "publish __sentinel:hello" message in new slave)

@karelrooted karelrooted force-pushed the fix/slave-can-not-execute-publish-cmd branch from ebc4d6d to 14f049f Compare April 30, 2021 09:41
@git-hulk
Copy link
Member

It seems fine that don’t write the WAL when the role was slave. But it would be better to propagate it without writing to WAL.

@karelrooted karelrooted added the bug type bug label Apr 30, 2021
@ShooterIT
Copy link
Member

I feel ok for current solution. But i have a question, why we persist publish messages?

@git-hulk
Copy link
Member

We want to use the WAL to help us propagating the publish command like others.

@karelrooted karelrooted merged commit 7e09284 into apache:unstable Apr 30, 2021
@karelrooted
Copy link
Contributor Author

@Mergifyio backport 1.3

mergify bot pushed a commit that referenced this pull request Apr 30, 2021
@mergify
Copy link

mergify bot commented Apr 30, 2021

Command backport 1.3: success

Backports have been created

@karelrooted
Copy link
Contributor Author

@Mergifyio backport 2.0

mergify bot pushed a commit that referenced this pull request Apr 30, 2021
@mergify
Copy link

mergify bot commented Apr 30, 2021

Command backport 2.0: success

Backports have been created

karelrooted pushed a commit that referenced this pull request Apr 30, 2021
karelrooted pushed a commit that referenced this pull request Apr 30, 2021
ShooterIT added a commit that referenced this pull request May 6, 2021
This was referenced May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants