Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

test: increase TTL to improve stability #812

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

lance6716
Copy link
Collaborator

@lance6716 lance6716 commented Jul 21, 2020

What problem does this PR solve?

reduce test fail for testScheduler.TestRestartScheduler: https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/dm_ghpr_test/detail/dm_ghpr_test/5753/pipeline

What is changed and how it works?

etcd's check and keep alive interval is retryConnWait = 500 * time.Millisecond, see https://github.com/etcd-io/etcd/blob/b28a6272b73359591fe22bac5ac8cae8afdbe0cc/clientv3/lease.go#L580. I guess it accounts for our 1 second TTL timeout

Check List

Tests

  • Unit test
  • Integration test

Code changes

Side effects

Related changes

@lance6716 lance6716 added priority/unimportant Really minor change, requires approval from secondary reviewers status/PTAL This PR is ready for review. Add this label back after committing new changes type/bug-fix Bug fix labels Jul 21, 2020
@csuzhangxc
Copy link
Member

/run-all-tests

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Jul 22, 2020
@csuzhangxc csuzhangxc added this to the v2.0.0 RC milestone Jul 22, 2020
Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

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

LGTM

@WangXiangUSTC WangXiangUSTC added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Jul 22, 2020
@lance6716 lance6716 merged commit 548c866 into pingcap:master Jul 22, 2020
@lance6716 lance6716 deleted the increase-ttl branch July 22, 2020 11:35
@lance6716 lance6716 mentioned this pull request Jul 24, 2020
28 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/unimportant Really minor change, requires approval from secondary reviewers status/LGT2 Two reviewers already commented LGTM, ready for merge type/bug-fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants