-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix disorder in reconnecting logtail 2.0 (#21175)
-Resolve inconsistencies in pausing and resuming logtail consumers. Approved by: @LeftHandCold, @heni02, @XuPeng-SH, @volgariver6, @sukki37
- Loading branch information
Showing
5 changed files
with
122 additions
and
16 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
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
43 changes: 43 additions & 0 deletions
43
test/distributed/cases/dml/checkpoint/connectlogtail.result
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,43 @@ | ||
select enable_fault_injection(); | ||
enable_fault_injection() | ||
true | ||
select add_fault_point('fj/cn/recv/err', ':::', 'echo', 1000, ''); | ||
add_fault_point(fj/cn/recv/err, :::, echo, 1000, ) | ||
true | ||
select add_fault_point('fj/cn/recv/subsyserr', ':::', 'echo', 30000, ''); | ||
add_fault_point(fj/cn/recv/subsyserr, :::, echo, 30000, ) | ||
true | ||
select sleep(1); | ||
sleep(1) | ||
0 | ||
select remove_fault_point('fj/cn/recv/subsyserr'); | ||
remove_fault_point(fj/cn/recv/subsyserr) | ||
true | ||
select add_fault_point('fj/cn/recv/rcacheerr', ':::', 'echo', 70000, ''); | ||
add_fault_point(fj/cn/recv/rcacheerr, :::, echo, 70000, ) | ||
true | ||
select sleep(1); | ||
sleep(1) | ||
0 | ||
select remove_fault_point('fj/cn/recv/rcacheerr'); | ||
remove_fault_point(fj/cn/recv/rcacheerr) | ||
true | ||
select disable_fault_injection(); | ||
disable_fault_injection() | ||
true | ||
select sleep(1); | ||
sleep(1) | ||
0 | ||
create database logtail_reconnect; | ||
show databases; | ||
Database | ||
connectlogtail | ||
information_schema | ||
logtail_reconnect | ||
mo_catalog | ||
mo_debug | ||
mo_task | ||
mysql | ||
system | ||
system_metrics | ||
drop database logtail_reconnect; |
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,23 @@ | ||
|
||
select enable_fault_injection(); | ||
select add_fault_point('fj/cn/recv/err', ':::', 'echo', 1000, ''); | ||
select add_fault_point('fj/cn/recv/subsyserr', ':::', 'echo', 30000, ''); | ||
|
||
select sleep(1); | ||
|
||
select remove_fault_point('fj/cn/recv/subsyserr'); | ||
|
||
select add_fault_point('fj/cn/recv/rcacheerr', ':::', 'echo', 70000, ''); | ||
|
||
select sleep(1); | ||
|
||
select remove_fault_point('fj/cn/recv/rcacheerr'); | ||
select disable_fault_injection(); | ||
|
||
select sleep(1); | ||
|
||
create database logtail_reconnect; | ||
show databases; | ||
drop database logtail_reconnect; | ||
|
||
|