Skip to content

Conversation

@oranagra
Copy link
Member

This commit adds tests to make sure that relative and absolute expire commands
are propagated as is to replicas and stop any future attempt to change that without
a proper discussion. see #8327 and #5171

Additionally it slightly improve the AOF test that tests the opposite (always
propagating absolute times), by covering more commands, and shaving 2
seconds from the test time.

@ShooterIT
Copy link
Member

Hi @oranagra Actually, I ever wanted to always propagate absolute expire commands, but Salvatore said
#5171 (comment), that is a bigger problem in fact, AFAIK, users prefer to use set k v ex/px or setex rather than expireat/pexpireat, so we should propagate relative expire commands as they are.

But could we have a way to only propagate absolute expire commands? For this big idea #4357 my team already implemented psync-aof similar with #4357 (comment), I also want to share with community. our solution needs replication backlog has the same content with AOF.

itamarhaber
itamarhaber previously approved these changes Jan 19, 2021
Co-authored-by: Itamar Haber <itamar@redislabs.com>
@oranagra oranagra requested a review from yossigo January 19, 2021 10:03
yossigo
yossigo previously approved these changes Jan 19, 2021
@oranagra oranagra added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label Jan 19, 2021
@oranagra
Copy link
Member Author

i'm merging this for now to pin the current state. we can open that for discussion after (either here of in a new issue)

@oranagra oranagra merged commit a29aec9 into redis:unstable Jan 19, 2021
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Mar 2, 2021
…redis#8357)

This commit adds tests to make sure that relative and absolute expire commands
are propagated as is to replicas and stop any future attempt to change that without
a proper discussion. see redis#8327 and redis#5171

Additionally it slightly improve the AOF test that tests the opposite (always
propagating absolute times), by covering more commands, and shaving 2
seconds from the test time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants