pingcap / tiflash

The analytical engine for TiDB and TiDB Cloud. Try free: https://tidbcloud.com/free-trial
https://docs.pingcap.com/tidb/stable/tiflash-overview
Apache License 2.0
946 stars 409 forks source link

the result lost some data #6857

Closed ChenPeng2013 closed 1 year ago

ChenPeng2013 commented 1 year ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

run automated case

create table t(a int primary key, b int, c int);
insert some data;
alter table t set tiflash replica 2;
select a,b,c from t;
inject network-loss
recover network-loss

2. What did you expect to see? (Required)

sum of column a

50005000

3. What did you see instead (Required)

sum of column a

11928000

4. What is your TiFlash version? (Required)

TiFlash
Release Version: v6.7.0-alpha
Edition:         Community
Git Commit Hash: ee8675a00e693db7588c9d562a071910e521de66
Git Branch:      heads/refs/tags/v6.7.0-alpha
UTC Build Time:  2023-02-17 11:41:40
Enable Features: jemalloc sm4(GmSSL) avx2 avx512 unwind thinlto
Profile:         RELWITHDEBINFO

Raft Proxy
Git Commit Hash:   6444536dc45ccf50949ac47f10ced164578ddf55
Git Commit Branch: HEAD
UTC Build Time:    2023-02-17 11:47:45
Rust Version:      rustc 1.67.0-nightly (96ddd32c4 2022-11-14)
Storage Engine:    tiflash
Prometheus Prefix: tiflash_proxy_
Profile:           release
ChenPeng2013 commented 1 year ago

rows.Error raise expected error

delete networkload loss tiflash-2
2023-02-27 12:55:06.386179014 +0800 CST m=+426.812400001 tiflash 40829386, 40829386, 40829386
2023-02-27 12:55:06.386275776 +0800 CST m=+426.812496738 tiflash Error 1105: DB::TiFlashException: Failed to register MPP Task MPP<query:<query_ts:1677473645171838026, local_query_i
d:843, server_id:3914044, start_ts:439739651235512322>,task_id:3>, reason: task has been registered