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

Renaming commands and AOF #2783

Open
finid opened this issue Sep 23, 2015 · 4 comments
Open

Renaming commands and AOF #2783

finid opened this issue Sep 23, 2015 · 4 comments

Comments

@finid
Copy link

finid commented Sep 23, 2015

In the Redis configuration, there's this warning in the command-renaming section:

# Please note that changing the name of commands that are logged into the
# AOF file or transmitted to slaves may cause problems.

What's the nature of the problem and what's the solution?

TIA

@badboy
Copy link
Contributor

badboy commented Sep 23, 2015

The commands are logged to the AOF and replicated to the slave the same way they are sent, so if you try to replay the AOF on an instance that doesn't have the same renaming, you may face inconsistencies as the command cannot be executed (same for slaves).

Keep in mind that this issue tracker should be used for bugs or improvements to the Redis server. For questions like yours please ask on the mailing list or ask in the irc channel #redis on freenode.

@finid
Copy link
Author

finid commented Sep 23, 2015

Thanks. I'll ask my follow up question on the mailing list

@finid
Copy link
Author

finid commented Sep 23, 2015

How does this apply to standalone Redis installations?

@badboy
Copy link
Contributor

badboy commented Sep 23, 2015

As I told you: the command is saved as is in the AOF. You need to make sure that the instance loading that AOF has the same renamed commands.

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

No branches or pull requests

2 participants