Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-2040

Fix RaftPeerId generated by command of "raftMetaConf" to use real PeerId

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • shell
    • None

    Description

      Originally, the PeerId generated in file new-raft-meta.conf by command 

      $ ratis sh local raftMetaConf -peers <P0_HOST:P0_PORT,P1_HOST:P1_PORT,P2_HOST:P2_PORT> -path <PARENT_PATH_OF_RAFT_META_CONF> 

      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.

      Attachments

        Issue Links

          Activity

            People

              dteng Dave Teng
              dteng Dave Teng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: