From three part series of above web link I successfully configured Part-1. However in Part-2 when I do few configuration (for example "sentinel failover-timeout mymaster 180000
"), I face subjected/below WARNING. why ? please help in this regards.
WARNING: The file has been changed since reading it!!! Do you really want to write to it (y/n)?
I assume that this below configuration is only valid for Master Server sentinel configuration file and not for Slave nodes that’s why the WARNING appears.
I assume you are using vi/editor that shows the error, that is actually just a warning from the editor.
It is said that
When Vim notices the timestamp of a file has changed, and the file is being
edited in a buffer but has not changed, Vim checks if the contents of the file
is equal. This is done by reading the file again (into a hidden buffer, which
is immediately deleted again) and comparing the text. If the text is equal,
you will get no warning.