yes, if the server reboots (this is when it would read the config file). Otherwise, it has the last config in memory (this is held in a QuorumVerifier object in QuorumPeer) and it doesn't look in the config file.
BTW the config file (when overwritten by the system) has an auto-generated version using which we know which config is later than which. Users are not supposed to specify this version at all - its supposed to be managed by the system. If you replace the file and set the version to something low or not specify it at all, chances are that the config file will be overwritten during synchronization with the leader or during communication with other servers in FastLeaderElection. If you set it to something high, its possible that your server will be able to convince others that this is the latest config :) Alex On Sat, Jul 28, 2012 at 10:57 AM, Jared Cantwell <[email protected]>wrote: > No that you would want to do this, but simply overwriting a config file > would "uncommit" a configuration and make that server think the last > committed configuration was whatever is in the file? >
