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

未关闭
#154 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust

调研方向

从 3 节点 Rust 示例开始,将 tick_interval 设置为 0.1,以重现配置更改,然后将其行为与稍大间隔下的行为进行比较。跟踪已移除节点的终止路径,以及 change_config 周围的 tick 处理。完成的标准是:在 0.1 下,被移除的节点能够可靠地终止,并且不再干扰集群操作,同时为报告的问题提供回归覆盖。

由索引模型根据 Issue 内容生成。

描述

bug need investigation ossca-24

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.

主要语言
Rust
星标
44
派生
14
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lablup/raftify 的其他 Issue

查看 lablup/raftify 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。