-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/configuration: assigning initial revisions to nodes without revisions
Implemented assigning initial revision id when old configuration format is used by raft group. Older raft::configuration didn't hold `raft::vnode` tuple. It was using plain `model::node_id` instead. In current version we keep `raft::vnode` in raft configuration. When controller backend creates a topic it assign identity of a current node recognized by this raft group. The `raft::vnode` is equal to an offset of command that caused partition creation. The problem that we experienced after updating from old raft configuration format to the new one was caused by keeping nodes without revision in configuration but assigning node revision when creating raft group. This made the nodes hosting raft group not being part of its configured quorum. Since redpanda now does not support raft configuration changes we can safely modify configuration content to assign initial revisions to nodes being part of raft group configuration. Fixes: #501 Signed-off-by: Michal Maslanka <[email protected]>
- Loading branch information
1 parent
9e98199
commit 62f9a8f
Showing
7 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters