apache / apache/iotdb

[Bug] 数据同步问题

未关闭
#8,060 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.4k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
115

描述

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

current version

### Describe the bug and provide the minimal reproduce step

多副本情况下, data region leader wal 数据有积压, 切换到 follow 以后,客户端 接着写入 ,由于 LogDispatcher 维护的 index 是不同的, 导致数据 不是严格有序的。 如果都是 insert , 没有问题, 但是如果 有 delete 操作, 会出现数据 丢失问题。

### What did you expect to see?

-

### What did you see instead?

-

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

贡献指南

打开贡献指南

调研方向

从 issue 中描述的 LogDispatcher 状态开始,跟踪数据区域从 leader 切换到 follower 时其索引如何变化。复现包含待处理 WAL 数据和后续客户端写入的多副本场景,包括删除操作;完成的标准是写入始终保持严格有序,并且删除不再导致数据丢失。

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

评估

技术栈
java
领域
databases, distributed-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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