Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

conn: set PD timeout to 10 secs#432

Merged
ti-srebot merged 5 commits intopingcap:masterfrom
YuJuncen:add-pd-client-livetime
Jul 22, 2020
Merged

conn: set PD timeout to 10 secs#432
ti-srebot merged 5 commits intopingcap:masterfrom
YuJuncen:add-pd-client-livetime

Conversation

@YuJuncen
Copy link
Collaborator

What problem does this PR solve?

fix #324

What is changed and how it works?

  • Update TiDB to github.com/pingcap/pd/v4 v4.0.0-rc.2.0.20200714122454-1a64f969cb3c.
    So, we can...
  • Update PD to github.com/pingcap/tidb v1.1.0-beta.0.20200721005019-f5c6e59f0daf.
    And use the new API to set timeout.

Check List

Tests

  • Integration test
    Since this is the internal part of PD client, we cannot add unit tests by injecting fail point. Thanks for that it's a really small change.

Release Note

  • No release note.

Hillium and others added 3 commits July 21, 2020 10:33
10 secs (comparing to 3 secs, the default value) seems is enough for many scenarios.

Signed-off-by: Hillium <maruruku@stu.csust.edu.cn>
Signed-off-by: Hillium <maruruku@stu.csust.edu.cn>
@YuJuncen YuJuncen requested review from 3pointer and kennytm July 21, 2020 06:22
@YuJuncen
Copy link
Collaborator Author

For 4.0 version, waiting for pingcap/tidb#18570.

@YuJuncen YuJuncen requested a review from overvenus July 21, 2020 06:28
@YuJuncen
Copy link
Collaborator Author

/build

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

LGTM, we can update pd in tidb when we update br in tidb.

@ti-srebot ti-srebot added the status/LGT1 LGTM1 label Jul 22, 2020
Copy link
Collaborator

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added status/LGT2 LGTM2 and removed status/LGT1 LGTM1 labels Jul 22, 2020
@kennytm
Copy link
Collaborator

kennytm commented Jul 22, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit d5cf4b7 into pingcap:master Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update GC safePoint with TTL failed due to DeadlineExceeded

5 participants