Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test etcd panic #42

Open
wants to merge 75 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
55552e1
test
lhy1024 Sep 26, 2024
0a0f91c
trigger test
lhy1024 Sep 26, 2024
daf95d0
trigger test
lhy1024 Sep 26, 2024
411f31b
trigger test 1
lhy1024 Sep 26, 2024
5127ac1
trigger test 2
lhy1024 Sep 26, 2024
4da17fc
trigger test 3
lhy1024 Sep 26, 2024
dcb5da8
trigger test 4
lhy1024 Sep 26, 2024
6859049
trigger test 5
lhy1024 Sep 26, 2024
38fd84d
trigger test 1
lhy1024 Sep 26, 2024
efee08f
trigger test 2
lhy1024 Sep 26, 2024
f04b954
trigger test 3
lhy1024 Sep 26, 2024
cb46d53
trigger test 4
lhy1024 Sep 26, 2024
224e3d4
trigger test 5
lhy1024 Sep 26, 2024
6a7abdf
trigger test 1
lhy1024 Sep 27, 2024
29f9134
trigger test 1
lhy1024 Sep 27, 2024
b06b98b
trigger test 2
lhy1024 Sep 27, 2024
00f4c4a
trigger test 1
lhy1024 Sep 27, 2024
8d66337
trigger test 2
lhy1024 Sep 27, 2024
270ec3c
trigger test 3
lhy1024 Sep 27, 2024
11305a1
trigger test 4
lhy1024 Sep 27, 2024
d08427d
trigger test 5
lhy1024 Sep 27, 2024
4c0a7b0
trigger test 6
lhy1024 Sep 27, 2024
320b51e
trigger test 7
lhy1024 Sep 27, 2024
9d1fe16
trigger test 8
lhy1024 Sep 27, 2024
38b5447
trigger test 9
lhy1024 Sep 27, 2024
6437fef
trigger test 10
lhy1024 Sep 27, 2024
8d416ee
trigger test 11
lhy1024 Sep 27, 2024
fc1e6ea
trigger test 12
lhy1024 Sep 27, 2024
6e06911
trigger test 13
lhy1024 Sep 27, 2024
d240efb
trigger test 14
lhy1024 Sep 27, 2024
57809e6
trigger test 15
lhy1024 Sep 27, 2024
3d169d2
trigger test 16
lhy1024 Sep 27, 2024
4364691
trigger test 17
lhy1024 Sep 27, 2024
8e9cb74
trigger test 18
lhy1024 Sep 27, 2024
481cc52
trigger test 19
lhy1024 Sep 27, 2024
e7e3edd
trigger test 20
lhy1024 Sep 27, 2024
d4d4898
trigger test 21
lhy1024 Sep 27, 2024
6d8e3f6
trigger test 22
lhy1024 Sep 27, 2024
c44b8a2
trigger test 23
lhy1024 Sep 27, 2024
5dac725
trigger test 24
lhy1024 Sep 27, 2024
fae5355
trigger test 25
lhy1024 Sep 27, 2024
12761b3
trigger test 26
lhy1024 Sep 27, 2024
0c46982
trigger test 27
lhy1024 Sep 27, 2024
e0d9bd7
trigger test 28
lhy1024 Sep 27, 2024
32299bd
trigger test 29
lhy1024 Sep 27, 2024
4aeee40
trigger test 30
lhy1024 Sep 27, 2024
0bc7e45
trigger test 31
lhy1024 Sep 27, 2024
7ac9559
trigger test 32
lhy1024 Sep 27, 2024
df6890b
trigger test 33
lhy1024 Sep 27, 2024
7487e7c
trigger test 34
lhy1024 Sep 27, 2024
b57f299
trigger test 35
lhy1024 Sep 27, 2024
1212ab2
trigger test 36
lhy1024 Sep 27, 2024
8c33807
trigger test 37
lhy1024 Sep 27, 2024
e1fa067
trigger test 1
lhy1024 Sep 28, 2024
026e9b5
trigger test 2
lhy1024 Sep 28, 2024
aee4780
trigger test 3
lhy1024 Sep 28, 2024
9bcbedb
trigger test 4
lhy1024 Sep 28, 2024
7be59f5
trigger test 5
lhy1024 Sep 28, 2024
3675bb4
trigger test 6
lhy1024 Sep 28, 2024
1edbc6d
trigger test 7
lhy1024 Sep 28, 2024
74285f6
trigger test 8
lhy1024 Sep 28, 2024
17c7996
trigger test 9
lhy1024 Sep 28, 2024
5fe5d78
trigger test 10
lhy1024 Sep 28, 2024
19c0f04
add test
lhy1024 Sep 28, 2024
db21b7f
Merge branch 'test-etcd-panic' of github.com:lhy1024/pd into test-etc…
lhy1024 Sep 28, 2024
d625b07
trigger test 1
lhy1024 Sep 28, 2024
756ebc9
trigger test 2
lhy1024 Sep 28, 2024
04b6944
trigger test 3
lhy1024 Sep 28, 2024
7fa3983
trigger test 4
lhy1024 Sep 28, 2024
0a1ed02
trigger test 5
lhy1024 Sep 28, 2024
bd40ca8
trigger test 6
lhy1024 Sep 28, 2024
3d68f01
trigger test 7
lhy1024 Sep 28, 2024
c386084
trigger test 8
lhy1024 Sep 28, 2024
62d5a59
trigger test 9
lhy1024 Sep 28, 2024
81f15bc
trigger test 10
lhy1024 Sep 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion tests/integrations/mcs/scheduling/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

"github.com/pingcap/failpoint"
"github.com/pingcap/kvproto/pkg/metapb"
"github.com/pingcap/log"
"github.com/stretchr/testify/suite"
"github.com/tikv/pd/pkg/core"
_ "github.com/tikv/pd/pkg/mcs/scheduling/server/apis/v1"
Expand All @@ -24,9 +25,11 @@ import (
"github.com/tikv/pd/pkg/statistics"
"github.com/tikv/pd/pkg/storage"
"github.com/tikv/pd/pkg/utils/apiutil"
"github.com/tikv/pd/pkg/utils/etcdutil"
"github.com/tikv/pd/pkg/utils/testutil"
"github.com/tikv/pd/pkg/versioninfo"
"github.com/tikv/pd/tests"
"go.uber.org/zap"
)

type apiTestSuite struct {
Expand Down Expand Up @@ -517,7 +520,15 @@ func (suite *apiTestSuite) checkFollowerForward(cluster *tests.TestCluster) {
leader := cluster.GetLeaderServer()
cli := leader.GetEtcdClient()
testutil.Eventually(re, func() bool {
_, err = cli.MemberRemove(context.Background(), follower.GetServer().GetMember().ID())
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
return etcdutil.IsHealthy(ctx, cli)
})
testutil.Eventually(re, func() bool {
_, err = etcdutil.RemoveEtcdMember(cli, follower.GetServerID())
if err != nil {
log.Info("failed to remove member", zap.Error(err))
}
return err == nil
})
testutil.Eventually(re, func() bool {
Expand Down
Loading