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

stability: add sst-file-corruption case #382

Merged
merged 6 commits into from
Apr 15, 2019

Conversation

zyguan
Copy link
Contributor

@zyguan zyguan commented Apr 10, 2019

This PR test tikv failover by attaching to a tikv store and truncating a sst file. The failover should be triggered in a short time (5min) after maxStoreDownTime+tikvFailoverPeriod.
see: #368 & #362

@zyguan zyguan requested review from weekface and xiaojingchen April 10, 2019 08:17
@zyguan zyguan added the test/stability stability tests label Apr 10, 2019
tests/pkg/util/client/client.go Outdated Show resolved Hide resolved
tests/pkg/util/ops/tikv.go Outdated Show resolved Hide resolved

type PollFn func(conditionFunc wait.ConditionFunc) error

func PollImmediate(ds ...time.Duration) PollFn {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this function mean?

Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@weekface
Copy link
Contributor

/run-e2e-tests

@weekface
Copy link
Contributor

@xiaojingchen ptal

@weekface weekface merged commit c683ac2 into pingcap:master Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test/stability stability tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants