Skip to content

'Region epoch not match' happened after TiFlash restart #5458

@JinheLin

Description

@JinheLin

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Do some query in TiFlash => succeed
  2. Restart TiFlash instance.
  3. Do some query in TiFlash => ERROR 1105 (HY000): other error for mpp stream: Code: 0, e.displayText() = DB::Exception: Region epoch not match after retries: Region {7618,4,73} not in region cache., e.what() = DB::Exception, => Cannot recover automatically within ten minutes.
  4. Restart other components(tikv, tidb, pd).
  5. Do some query in TiFlash => successed

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

In step 3, query succeed.

3. What did you see instead (Required)

In step 3, query failed.

4. What is your TiFlash version? (Required)

mysql> select * from information_schema.cluster_info;
+---------+------------------+-------------------+-------------+------------------------------------------+---------------------------+-----------------+-----------+
| TYPE    | INSTANCE         | STATUS_ADDRESS    | VERSION     | GIT_HASH                                 | START_TIME                | UPTIME          | SERVER_ID |
+---------+------------------+-------------------+-------------+------------------------------------------+---------------------------+-----------------+-----------+
| tidb    | 172.16.5.82:8240 | 172.16.5.82:8740  | 6.2.0-alpha | 28a8ffcf67f9b1979920d03c29a54842314aa921 | 2022-07-25T11:19:56+08:00 | 3m35.615525336s |   1052701 |
| pd      | 172.16.5.82:6740 | 172.16.5.82:6740  | 6.2.0-alpha | 97be5573aff20600cc35e582415fffab73a0e3e6 | 2022-07-25T11:19:48+08:00 | 3m43.615556016s |         0 |
| tikv    | 172.16.5.82:7740 | 172.16.5.82:16740 | 6.2.0-alpha | b4a0e3cfd566644ad5b10ba5ba309c029b42f5a2 | 2022-07-25T11:19:54+08:00 | 3m37.615558045s |         0 |
| tiflash | 172.16.5.59:5840 | 172.16.5.59:17240 | 6.2.0-alpha | 3ad743b58629fcb356701135b4dd2333632fc1da | 2022-07-25T11:19:57+08:00 | 3m34.615559572s |         0 |
+---------+------------------+-------------------+-------------+------------------------------------------+---------------------------+-----------------+-----------+
4 rows in set (0.01 sec)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions