You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Song Ziyang (Jira)" <ji...@apache.org> on 2022/11/20 02:16:00 UTC

[jira] [Comment Edited] (RATIS-1749) GroupMismatchException thrown when setConfiguration

    [ https://issues.apache.org/jira/browse/RATIS-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17636256#comment-17636256 ] 

Song Ziyang edited comment on RATIS-1749 at 11/20/22 2:15 AM:
--------------------------------------------------------------

[~szetszwo] Thanks for your help! I'll take the new order and change the current implementation of IoTDB. Hope that I can conclude this issue soon.


was (Author: JIRAUSER281912):
[~William Song] Thanks for your help! I'll take the new order and change the current implementation of IoTDB. Hope that I can conclude this issue soon.

> GroupMismatchException thrown when setConfiguration
> ---------------------------------------------------
>
>                 Key: RATIS-1749
>                 URL: https://issues.apache.org/jira/browse/RATIS-1749
>             Project: Ratis
>          Issue Type: Bug
>          Components: client, raft-group
>    Affects Versions: 2.4.0
>            Reporter: Song Ziyang
>            Priority: Major
>         Attachments: error_stack.log
>
>
> GroupMismatchException occurs when I'm trying to start and add a new server to the group.
> Reproduce steps:
>  # call CompletableFuture.supplyAsync(admin().setConfiguration(newGroup))
>  # 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] 
>  
>  



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