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

redis.conf: Add data loss warning to "appendonly" #12506

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

threema-danilo
Copy link
Contributor

@threema-danilo threema-danilo commented Aug 21, 2023

warning against editing the config file and restarting the server.
which will attempt to load an AOF file and disregard the RDB.

Fixes #12484

redis.conf Outdated Show resolved Hide resolved
Co-authored-by: Oran Agra <oran@redislabs.com>
@oranagra
Copy link
Member

thanks. i'll keep it open for a day to wait for additional feedback.

@@ -1382,6 +1382,10 @@ disable-thp yes
# If the AOF is enabled on startup Redis will load the AOF, that is the file
# with the better durability guarantees.
#
# Note that changing this value in a config file of an existing database and
# restarting the server can lead to data loss. A conversion needs to be done
# by setting it via CONFIG command on a live server first.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to mention that the reason we do this is because we need to trigger an AOFRW?

or mention doing a CONFIG SET appendonly yes will trigger an AOFRW

Copy link
Member

Choose a reason for hiding this comment

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

we can, if we can make it short.
alternatively, maybe the context above that line is enough and the users has a link for further reading just below it...

Copy link

@dbrgn dbrgn Aug 22, 2023

Choose a reason for hiding this comment

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

Yeah, in my opinion the "Please check https://redis.io/topics/persistence for more information." right below should be sufficient for people that want to know more.

Edit: Oops, private account instead of company account 🙂 I'm @threema-danilo.

@oranagra oranagra merged commit a6eff38 into redis:unstable Aug 22, 2023
13 checks passed
@threema-danilo threema-danilo deleted the aof-conversion-warning branch August 23, 2023 17:42
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Sep 8, 2023
warning against editing the config file and restarting the server.
which will attempt to load an AOF file and disregard the RDB.

Co-authored-by: Oran Agra <oran@redislabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] Complete data loss when enabling AOF through config
4 participants