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

Modules: Replicate lazy-expire even if replication is not allowed #8816

Merged
merged 4 commits into from
Apr 19, 2021

Conversation

guybe7
Copy link
Collaborator

@guybe7 guybe7 commented Apr 19, 2021

Before this commit using RM_Call without "!" could cause the master
to lazy-expire a key (delete it) but without replicating to replicas.
This could cause the replica's memory usage to gradually grow and
could also cause consistency issues if the master and replica have
a clock diff.
This bug was introduced in #8617

Added a test which demonstrates that scenario.

Before this commit using RM_Call without "!" could cause the master
to lazy-expire a key (delete it) but without replicating to replicas.
This caould cause the replica's memory usage to gradually grow and
could also cause consistency issues if the master and replica have
a clock diff.

Added a test which demonstrates that scenario.
@guybe7 guybe7 requested a review from oranagra April 19, 2021 12:56
src/db.c Outdated Show resolved Hide resolved
tests/modules/propagate.c Outdated Show resolved Hide resolved
tests/unit/moduleapi/propagate.tcl Outdated Show resolved Hide resolved
tests/unit/moduleapi/propagate.tcl Outdated Show resolved Hide resolved
tests/unit/moduleapi/propagate.tcl Outdated Show resolved Hide resolved
@oranagra
Copy link
Member

@guybe7 we don't need to mention it in the release notes, right? (considering that #8617 wasn't released yet)

Co-authored-by: Oran Agra <oran@redislabs.com>
@oranagra oranagra merged commit f40ca9c into redis:unstable Apr 19, 2021
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Sep 8, 2021
…dis#8816)

Before this commit using RM_Call without "!" could cause the master
to lazy-expire a key (delete it) but without replicating to replicas.
This could cause the replica's memory usage to gradually grow and
could also cause consistency issues if the master and replica have
a clock diff.
This bug was introduced in redis#8617

Added a test which demonstrates that scenario.
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