Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node removed from cluster fails to terminate disrupting cluster operations when tick_interval is 0.1 #154

Open
jollidah opened this issue Oct 7, 2024 · 0 comments
Labels
bug Something isn't working need investigation ossca-24 OSS Contribution Academy mentee's contributions.

Comments

@jollidah
Copy link
Contributor

jollidah commented Oct 7, 2024

This situation should not occur in the current raftify code. In a 3-node Rust example code, the following commands were executed from the client:

#[actix_rt::main]
async fn main() {
    let mut leader_client = create_client(&"127.0.0.1:60061").await.unwrap();
    leader_client
        .change_config(raft_service::ChangeConfigArgs {
            addrs: vec!["127.0.0.1:60062".to_owned()],
            changes: vec![ConfChangeSingle {
                node_id: 2,
                change_type: ConfChangeType::RemoveNode as i32,
            }],
        })
        .await
        .expect("Change config failed!");
}

The issue occurs when tick_interval is set to 0.1: a node removed from the cluster does not terminate and continues to disrupt the cluster's operations. Interestingly, this problem does not occur when the tick_interval is slightly larger.

@jopemachine jopemachine added bug Something isn't working need investigation ossca-24 OSS Contribution Academy mentee's contributions. labels Oct 7, 2024
@jopemachine jopemachine changed the title Node Removed from Cluster Fails to Terminate at tick_interval 0.1, Disrupting Cluster Operations Node removed from cluster fails to terminate disrupting cluster operations when tick_interval is 0.1 Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need investigation ossca-24 OSS Contribution Academy mentee's contributions.
Projects
None yet
Development

No branches or pull requests

2 participants