Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Finally, in case of rejected changes because the user is trying to change the voter IDs, the output will be: 

Code Block
Storage directory /var/kafka/kraft-logs is already formatted. 

Override voters mode enabled, checking if VoterSet needs updating... 

... 

Changes detected: 

VoterSetDiff{hasVoterIdChanges=true, hasDirectoryIdChanges=false, endpointChanges={}} 

Error: --override-voters cannot be used for changing node IDs or directory IDs. 

Changes detected: 

VoterSetDiff{hasVoterIdChanges=true, hasDirectoryIdChanges=false, endpointChanges={}} 

When the storage is not formatted yet, the --override-voters voters doesn’t have any additional impact, but the formatting runs as usual. It also doesn’t have any effect if the persisted voter set is the same as the one provided via the --initial-controllers option.

...