You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2024/04/10 23:40:00 UTC

[jira] [Resolved] (RATIS-2040) Fix RaftPeerId generated by command of "raftMetaConf" to use real PeerId

     [ https://issues.apache.org/jira/browse/RATIS-2040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz-wo Sze resolved RATIS-2040.
-------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

The pull request is now merged . Thanks, [~dteng]!

> Fix RaftPeerId generated by command of "raftMetaConf" to use real PeerId
> ------------------------------------------------------------------------
>
>                 Key: RATIS-2040
>                 URL: https://issues.apache.org/jira/browse/RATIS-2040
>             Project: Ratis
>          Issue Type: Task
>          Components: shell
>            Reporter: Dave Teng
>            Assignee: Dave Teng
>            Priority: Major
>             Fix For: 3.1.0
>
>
> Originally, the PeerId generated in file new-raft-meta.conf by command 
> {code:java}
> $ ratis sh local raftMetaConf -peers <P0_HOST:P0_PORT,P1_HOST:P1_PORT,P2_HOST:P2_PORT> -path <PARENT_PATH_OF_RAFT_META_CONF> {code}
> it uses the address of server as PeerId, which would cause the ratis group to fail to start if there are some duplicated addresses stored in raft-meta.conf.
> Thus, need to fix that by using actual PeerId in raft-meta.conf and store back to generated new-raft-meta.conf.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)