-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: JaySon-Huang <[email protected]>
- Loading branch information
1 parent
1c24ca5
commit 53fd650
Showing
6 changed files
with
139 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <Common/FailPoint.h> | ||
|
||
namespace DB | ||
{ | ||
std::unordered_map<String, std::shared_ptr<FailPointChannel>> FailPointHelper::fail_point_wait_channels; | ||
|
||
} // namespace DB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/fullstack-test/fault-inject/exception_after_read_from_storage.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
mysql> drop table if exists test.t | ||
|
||
>> DBGInvoke __init_fail_point() | ||
|
||
# Ensure that we can create table for that database | ||
mysql> create table test.t(a int not null, b int not null) | ||
mysql> alter table test.t set tiflash replica 1 location labels 'rack', 'host', 'abc' | ||
|
||
func> wait_table test t | ||
|
||
mysql> insert into test.t values (1, 1),(1, 2) | ||
|
||
# Region meta changed after read from storage | ||
>> DBGInvoke __enable_fail_point(region_exception_after_read_from_storage) | ||
|
||
mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t; | ||
+---+---+ | ||
| a | b | | ||
+---+---+ | ||
| 1 | 1 | | ||
| 1 | 2 | | ||
+---+---+ | ||
|
||
mysql> drop table if exists test.t | ||
>> DBGInvoke __disable_fail_point(region_exception_after_read_from_storage) |