pingcap / pingcap/tidb

workload report error or add index failed with "Error 1105 (HY000): create TSO stream failed, retry timeout" when injection pd leader fault

Open
#52,490 10 comments 0 reactions 2 assignees Claimed by @JmPotato View on GitHub
affects-8.5 component/pd may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 severity/major type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)
1、run sysbench
2、add index for one of table
3、kill pd leader

tidb logs:
[tidb-0.tar.gz](https://github.com/pingcap/tidb/files/14940989/tidb-0.tar.gz)
[tidb-1.tar.gz](https://github.com/pingcap/tidb/files/14940991/tidb-1.tar.gz)

### 2. What did you expect to see? (Required)
add index can success

### 3. What did you see instead (Required)
add index failed with error “Error 1105 (HY000): encountered TSO stream being closed unexpectedly”

add index failed at 2024-04-10 19:52:00: Error 1105 (HY000): encountered TSO stream being closed unexpectedly
operatorLogs:
[2024-04-10 19:48:55] ###### start adding index
ALTER TABLE `sbtest1` ADD INDEX `index_test_1712749735022`(`c`)
[2024-04-10 19:48:55] ###### wait for ddl job finish

### 4. What is your TiDB version? (Required)
./tidb-server -V
Release Version: v8.1.0-alpha
Edition: Community
Git Commit Hash: 33f5d05c478f18598b1a4b187a70ef1a54d896d4
Git Branch: heads/refs/tags/v8.1.0-alpha
UTC Build Time: 2024-04-08 11:45:05
GoVersion: go1.21.6
Race Enabled: false
Check Table Before Drop: false
Store: unistore
2024-04-10T08:51:01.611+0800

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.