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

GroupMismatchException thrown when setConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • 2.4.0
    • None
    • client, raft-group
    • None

    Description

      GroupMismatchException occurs when I'm trying to start and add a new server to the group.

      Reproduce steps:

      1. call CompletableFuture.supplyAsync(admin().setConfiguration(newGroup))
      2. call groupManagementApi(newServer).add(group)

      GroupMismatchException happens time to time, as in the attched log.

      I think the setConfiguration here may route the request to the NEW server to be added, since it does not explicitly assign a serverId in request. setConfiguration arrives before addNewGroup, so GroupMismatchException happens.

      [1]https://github.com/apache/ratis/blob/f2447cfe0b94ad5f9e72dff1623fa90b6f42f4f5/ratis-client/src/main/java/org/apache/ratis/client/api/AdminApi.java#L39 

       

       

      Attachments

        1. error_stack.log
          3 kB
          Song Ziyang

        Activity

          People

            Unassigned Unassigned
            William Song Song Ziyang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: