Repository: tikv/pd
Pull request #2780 (2020-08-17 11:35:27)

*: update the import path(release-3.1)
Signed-off-by: nolouch <nolouch@gmail.com>

<!--
Thank you for working on PD! Please read PD's [CONTRIBUTING](https://github.com/pingcap/pd/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
PR Title Format:
1. pkg [, pkg2, pkg3]: what's changed
2. *: what's changed
-->


### What problem does this PR solve?
ref: https://github.com/tikv/pd/issues/2758
- update import path
- cancel go mod v3

<!-- Add the issue link with a summary if it 

- exists. -->

### What is changed and how it works?

### Check List

<!-- Remove the items that are not applicable. -->

Tests

<!-- At least one of them must be included. -->

- Unit test
- Integration test
### Release note

<!-- A bugfix or a new feature needs a release note. If there is no need release note, just uncomment the below line. -->

<!-- - No release note -->
- change import path from `pingcap/pd` to `tikv/pd` 

nolouch: /run-all-tests
codecov[bot]: # [Codecov](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=h1) Report
> Merging [#2780](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=desc) into [release-3.1](https://codecov.io/gh/tikv/pd/commit/176f1e8f237158b268ff4558fab68380967a04ad&el=desc) will **increase** coverage by `0.13%`.
> The diff coverage is `70.00%`.

[![Impacted file tree graph](https://codecov.io/gh/tikv/pd/pull/2780/graphs/tree.svg?width=650&height=150&src=pr&token=J1yRL471OI)](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=tree)

```diff
@@               Coverage Diff               @@
##           release-3.1    #2780      +/-   ##
===============================================
+ Coverage        75.02%   75.16%   +0.13%     
===============================================
  Files              197      197              
  Lines            20893    20901       +8     
===============================================
+ Hits             15676    15711      +35     
+ Misses            4018     3997      -21     
+ Partials          1199     1193       -6     
```


| [Impacted Files](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [client/base\_client.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-Y2xpZW50L2Jhc2VfY2xpZW50Lmdv) | `88.27% <ø> (+1.37%)` | :arrow_up: |
| [pkg/apiutil/serverapi/middleware.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL2FwaXV0aWwvc2VydmVyYXBpL21pZGRsZXdhcmUuZ28=) | `73.07% <ø> (ø)` | |
| [pkg/dashboard/apiserver/apiserver.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL2Rhc2hib2FyZC9hcGlzZXJ2ZXIvYXBpc2VydmVyLmdv) | `81.81% <ø> (ø)` | |
| [pkg/dashboard/keyvisual/input/core.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL2Rhc2hib2FyZC9rZXl2aXN1YWwvaW5wdXQvY29yZS5nbw==) | `1.96% <ø> (ø)` | |
| [pkg/dashboard/uiserver/uiserver.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL2Rhc2hib2FyZC91aXNlcnZlci91aXNlcnZlci5nbw==) | `60.00% <ø> (ø)` | |
| [pkg/metricutil/metricutil.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL21ldHJpY3V0aWwvbWV0cmljdXRpbC5nbw==) | `86.11% <ø> (ø)` | |
| [pkg/mock/mockcluster/mockcluster.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL21vY2svbW9ja2NsdXN0ZXIvbW9ja2NsdXN0ZXIuZ28=) | `91.57% <ø> (ø)` | |
| [pkg/mock/mockhbstream/mockhbstream.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL21vY2svbW9ja2hic3RyZWFtL21vY2toYnN0cmVhbS5nbw==) | `89.23% <ø> (ø)` | |
| [pkg/mock/mockoption/mockoption.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL21vY2svbW9ja29wdGlvbi9tb2Nrb3B0aW9uLmdv) | `95.74% <ø> (ø)` | |
| [pkg/testutil/operator\_check.go](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree#diff-cGtnL3Rlc3R1dGlsL29wZXJhdG9yX2NoZWNrLmdv) | `86.11% <ø> (ø)` | |
| ... and [120 more](https://codecov.io/gh/tikv/pd/pull/2780/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=footer). Last update [d8cff01...b2b0d59](https://codecov.io/gh/tikv/pd/pull/2780?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

ti-srebot: @JmPotato,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: [scheduling](https://github.com/pingcap/community/tree/master/special-interest-groups/sig-scheduling)([slack](https://slack.tidb.io/invite?team=tidb-community&channel=sig-scheduling&ref=github)).
nolouch: /merge
ti-srebot: /run-all-tests

Patch:
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 2a8e41169..3bfbe13ea 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,5 +1,5 @@
 <!--
-Thank you for working on PD! Please read PD's [CONTRIBUTING](https://github.com/pingcap/pd/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
+Thank you for working on PD! Please read PD's [CONTRIBUTING](https://github.com/tikv/pd/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
 -->
 
 ### What problem does this PR solve? <!--add the issue link with summary if it exists-->
@@ -20,7 +20,7 @@ Tests <!-- At least one of them must be included. -->
 Code changes
 
  - Has configuration change
- - Has HTTP API interfaces change (Don't forget to [update API document](https://github.com/pingcap/pd/blob/master/docs/development.md#updating-api-documentation))
+ - Has HTTP API interfaces change (Don't forget to [update API document](https://github.com/tikv/pd/blob/master/docs/development.md#updating-api-documentation))
  - Has persistent data change
 
 Side effects
diff --git a/.travis.yml b/.travis.yml
index 1fcf39c95..914739e07 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ cache:
   directories:
     - $HOME/.cache/go-build
     - $GOPATH/pkg/mod
-    - $GOPATH/src/github.com/pingcap/pd/.retools
+    - $GOPATH/src/github.com/tikv/pd/.retools
 
 go:
   - 1.13
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19b972171..912e710e5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,34 +4,34 @@
 
 + Unify the log format for easy collection and analysis by tools
 + Simulator
-    - Support different heartbeat intervals in different stores [#1418](https://github.com/pingcap/pd/pull/1418)
-    - Add a case about importing data [#1263](https://github.com/pingcap/pd/pull/1263)
-+ Make hotspot scheduling configurable [#1412](https://github.com/pingcap/pd/pull/1412)
-+ Add the store address as the dimension monitoring item to replace the previous Store ID [#1429](https://github.com/pingcap/pd/pull/1429)
-+ Optimize the `GetStores` overhead to speed up the Region inspection cycle [#1410](https://github.com/pingcap/pd/pull/1410)
-+ Add an interface to delete the Tombstone Store [#1472](https://github.com/pingcap/pd/pull/1472)
+    - Support different heartbeat intervals in different stores [#1418](https://github.com/tikv/pd/pull/1418)
+    - Add a case about importing data [#1263](https://github.com/tikv/pd/pull/1263)
++ Make hotspot scheduling configurable [#1412](https://github.com/tikv/pd/pull/1412)
++ Add the store address as the dimension monitoring item to replace the previous Store ID [#1429](https://github.com/tikv/pd/pull/1429)
++ Optimize the `GetStores` overhead to speed up the Region inspection cycle [#1410](https://github.com/tikv/pd/pull/1410)
++ Add an interface to delete the Tombstone Store [#1472](https://github.com/tikv/pd/pull/1472)
 
 ## v3.0.0-beta
-- Add `RegionStorage` to store Region metadata separately [#1237](https://github.com/pingcap/pd/pull/1237)
-- Add shuffle hot Region scheduler [#1361](https://github.com/pingcap/pd/pull/1361)
-- Add scheduling parameter related metrics [#1406](https://github.com/pingcap/pd/pull/1406)
-- Add cluster label related metrics [#1402](https://github.com/pingcap/pd/pull/1402)
-- Add the importing data simulator [#1263](https://github.com/pingcap/pd/pull/1263)
-- Fix the `Watch` issue about leader election [#1396](https://github.com/pingcap/pd/pull/1396)
+- Add `RegionStorage` to store Region metadata separately [#1237](https://github.com/tikv/pd/pull/1237)
+- Add shuffle hot Region scheduler [#1361](https://github.com/tikv/pd/pull/1361)
+- Add scheduling parameter related metrics [#1406](https://github.com/tikv/pd/pull/1406)
+- Add cluster label related metrics [#1402](https://github.com/tikv/pd/pull/1402)
+- Add the importing data simulator [#1263](https://github.com/tikv/pd/pull/1263)
+- Fix the `Watch` issue about leader election [#1396](https://github.com/tikv/pd/pull/1396)
 
 ## v2.1.2
-- Fix the Region information update issue about Region merge [#1377](https://github.com/pingcap/pd/pull/1377)
+- Fix the Region information update issue about Region merge [#1377](https://github.com/tikv/pd/pull/1377)
 
 ## v2.1.1
-- Fix the issue that some configuration items cannot be set to `0` in the configuration file [#1334](https://github.com/pingcap/pd/pull/1334)
-- Check the undefined configuration when starting PD [#1362](https://github.com/pingcap/pd/pull/1362)
-- Avoid transferring the leader to a newly created peer, to optimize the possible delay [#1339](https://github.com/pingcap/pd/pull/1339)
-- Fix the issue that `RaftCluster` cannot stop caused by deadlock [#1370](https://github.com/pingcap/pd/pull/1370)
+- Fix the issue that some configuration items cannot be set to `0` in the configuration file [#1334](https://github.com/tikv/pd/pull/1334)
+- Check the undefined configuration when starting PD [#1362](https://github.com/tikv/pd/pull/1362)
+- Avoid transferring the leader to a newly created peer, to optimize the possible delay [#1339](https://github.com/tikv/pd/pull/1339)
+- Fix the issue that `RaftCluster` cannot stop caused by deadlock [#1370](https://github.com/tikv/pd/pull/1370)
 
 ## v2.1.0
 + Optimize availability
     - Introduce the version control mechanism and support rolling update of the cluster compatibly
-    - [Enable `Raft PreVote`](https://github.com/pingcap/pd/blob/5c7b18cf3af91098f07cf46df0b59fbf8c7c5462/conf/config.toml#L22) among PD nodes to avoid leader reelection when network recovers after network isolation
+    - [Enable `Raft PreVote`](https://github.com/tikv/pd/blob/5c7b18cf3af91098f07cf46df0b59fbf8c7c5462/conf/config.toml#L22) among PD nodes to avoid leader reelection when network recovers after network isolation
     - Enable `raft learner` by default to lower the risk of unavailable data caused by machine failure during scheduling
     - TSO allocation is no longer affected by the system clock going backwards
     - Support the `Region merge` feature to reduce the overhead brought by metadata
@@ -43,7 +43,7 @@
     - Optimize the issue that Balance Scheduler schedules small Regions frequently
     - Optimize Region merge to consider the number of rows within the Region
     - [Add more commands to control the scheduling policy](https://pingcap.com/docs/tools/pd-control/#config-show--set-option-value)
-    - Improve [PD simulator](https://github.com/pingcap/pd/tree/release-2.1/tools/pd-simulator) to simulate the scheduling scenarios
+    - Improve [PD simulator](https://github.com/tikv/pd/tree/release-2.1/tools/pd-simulator) to simulate the scheduling scenarios
 
 + API and operation tools
     - Add the [`GetPrevRegion` interface](https://github.com/pingcap/kvproto/blob/8e3f33ac49297d7c93b61a955531191084a2f685/proto/pdpb.proto#L40) to support the `TiDB reverse scan` feature
@@ -69,25 +69,25 @@
     - Optimize the performance of computing hotspot statistics
 
 ## v2.1.0-rc.5
-- Fix the issues related to `pd-ctl` reading the Region key [#1298](https://github.com/pingcap/pd/pull/1298) [#1299](https://github.com/pingcap/pd/pull/1299) [#1308](https://github.com/pingcap/pd/pull/1308)
-- Fix the issue that the `regions/check` API returns the wrong result [#1311](https://github.com/pingcap/pd/pull/1311)
-- Fix the issue that PD cannot restart join after a PD join failure [#1279](https://github.com/pingcap/pd/pull/1279)
-- Fix the issue that `watch leader` might lose events in some cases [#1317](https://github.com/pingcap/pd/pull/1317)
+- Fix the issues related to `pd-ctl` reading the Region key [#1298](https://github.com/tikv/pd/pull/1298) [#1299](https://github.com/tikv/pd/pull/1299) [#1308](https://github.com/tikv/pd/pull/1308)
+- Fix the issue that the `regions/check` API returns the wrong result [#1311](https://github.com/tikv/pd/pull/1311)
+- Fix the issue that PD cannot restart join after a PD join failure [#1279](https://github.com/tikv/pd/pull/1279)
+- Fix the issue that `watch leader` might lose events in some cases [#1317](https://github.com/tikv/pd/pull/1317)
 
 ## v2.1.0-rc.4
-- Fix the issue that the tombstone TiKV is not removed from Grafana [#1261](https://github.com/pingcap/pd/pull/1261)
-- Fix the data race issue when grpc-go configures the status [#1265](https://github.com/pingcap/pd/pull/1265)
-- Fix the issue that the PD server gets stuck caused by etcd startup failure [#1267](https://github.com/pingcap/pd/pull/1267)
-- Fix the issue that data race might occur during leader switching [#1273](https://github.com/pingcap/pd/pull/1273)
-- Fix the issue that extra warning logs might be output when TiKV becomes tombstone [#1280](https://github.com/pingcap/pd/pull/1273)
+- Fix the issue that the tombstone TiKV is not removed from Grafana [#1261](https://github.com/tikv/pd/pull/1261)
+- Fix the data race issue when grpc-go configures the status [#1265](https://github.com/tikv/pd/pull/1265)
+- Fix the issue that the PD server gets stuck caused by etcd startup failure [#1267](https://github.com/tikv/pd/pull/1267)
+- Fix the issue that data race might occur during leader switching [#1273](https://github.com/tikv/pd/pull/1273)
+- Fix the issue that extra warning logs might be output when TiKV becomes tombstone [#1280](https://github.com/tikv/pd/pull/1273)
 
 ## v2.1.0-rc.3
 ### New feature
-- Add the API to get the Region list by size in reverse order [#1254](https://github.com/pingcap/pd/pull/1254)
+- Add the API to get the Region list by size in reverse order [#1254](https://github.com/tikv/pd/pull/1254)
 ### Improvement
-- Return more detailed information in the Region API [#1252](https://github.com/pingcap/pd/pull/1252)
+- Return more detailed information in the Region API [#1252](https://github.com/tikv/pd/pull/1252)
 ### Bug fix
-- Fix the issue that `adjacent-region-scheduler` might lead to a crash after PD switches the leader [#1250](https://github.com/pingcap/pd/pull/1250)
+- Fix the issue that `adjacent-region-scheduler` might lead to a crash after PD switches the leader [#1250](https://github.com/tikv/pd/pull/1250)
 
 ## v2.1.0-rc2
 ### Features
diff --git a/Dockerfile b/Dockerfile
index f2d402f23..4ed570d70 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,8 +11,8 @@ RUN cd / && \
     wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq && \
     chmod +x jq
 
-RUN mkdir -p /go/src/github.com/pingcap/pd
-WORKDIR /go/src/github.com/pingcap/pd
+RUN mkdir -p /go/src/github.com/tikv/pd
+WORKDIR /go/src/github.com/tikv/pd
 
 # Cache dependencies
 COPY go.mod .
@@ -26,9 +26,9 @@ RUN make
 
 FROM alpine:3.5
 
-COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-server /pd-server
-COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-ctl /pd-ctl
-COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-recover /pd-recover
+COPY --from=builder /go/src/github.com/tikv/pd/bin/pd-server /pd-server
+COPY --from=builder /go/src/github.com/tikv/pd/bin/pd-ctl /pd-ctl
+COPY --from=builder /go/src/github.com/tikv/pd/bin/pd-recover /pd-recover
 COPY --from=builder /jq /usr/local/bin/jq
 
 EXPOSE 2379 2380
diff --git a/Makefile b/Makefile
index 15551c7df..3686fb46d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-PD_PKG := github.com/pingcap/pd/v3
+PD_PKG := github.com/tikv/pd
 
 TEST_PKGS := $(shell find . -iname "*_test.go" -exec dirname {} \; | \
-                     sort -u | sed -e "s/^\./github.com\/pingcap\/pd\/v3/")
+                     sort -u | sed -e "s/^\./github.com\/tikv\/pd/")
 INTEGRATION_TEST_PKGS := $(shell find . -iname "*_test.go" -exec dirname {} \; | \
-                     sort -u | sed -e "s/^\./github.com\/pingcap\/pd\/v3/" | grep -E "tests")
+                     sort -u | sed -e "s/^\./github.com\/tikv\/pd/" | grep -E "tests")
 BASIC_TEST_PKGS := $(filter-out $(INTEGRATION_TEST_PKGS),$(TEST_PKGS))
 
 PACKAGES := go list ./... | grep -v 'dashboard/uiserver'
@@ -132,7 +132,7 @@ travis_coverage: export GO111MODULE=on
 travis_coverage:
 ifeq ("$(TRAVIS_COVERAGE)", "1")
 	@$(FAILPOINT_ENABLE)
-	CGO_ENABLED=1 ./scripts/retool do $(OVERALLS) -concurrency=8 -project=github.com/pingcap/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(FAILPOINT_DISABLE); exit 1; }
+	CGO_ENABLED=1 ./scripts/retool do $(OVERALLS) -concurrency=8 -project=github.com/tikv/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(FAILPOINT_DISABLE); exit 1; }
 	@$(FAILPOINT_DISABLE)
 else
 	@echo "coverage only runs in travis."
diff --git a/README.md b/README.md
index 7604fa4cf..42d59125f 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
 # PD
 
-[![TravisCI Build Status](https://travis-ci.org/pingcap/pd.svg?branch=master)](https://travis-ci.org/pingcap/pd)
-![GitHub release](https://img.shields.io/github/release/pingcap/pd.svg)
-[![Go Report Card](https://goreportcard.com/badge/github.com/pingcap/pd)](https://goreportcard.com/report/github.com/pingcap/pd)
-[![codecov](https://codecov.io/gh/pingcap/pd/branch/master/graph/badge.svg)](https://codecov.io/gh/pingcap/pd)
+[![TravisCI Build Status](https://travis-ci.org/tikv/pd.svg?branch=master)](https://travis-ci.org/tikv/pd)
+![GitHub release](https://img.shields.io/github/release/tikv/pd.svg)
+[![Go Report Card](https://goreportcard.com/badge/github.com/tikv/pd)](https://goreportcard.com/report/github.com/tikv/pd)
+[![codecov](https://codecov.io/gh/tikv/pd/branch/master/graph/badge.svg)](https://codecov.io/gh/tikv/pd)
 
 PD is the abbreviation for Placement Driver. It is used to manage and schedule the [TiKV](https://github.com/tikv/tikv) cluster.
 
@@ -75,13 +75,13 @@ X-Etcd-Cluster-Id: 33dc747581249309
 You can use the following command to build a PD image directly:
 
 ```bash
-docker build -t pingcap/pd .
+docker build -t tikv/pd .
 ```
 
 Or you can also use following command to get PD from Docker hub:
 
 ```bash
-docker pull pingcap/pd
+docker pull tikv/pd
 ```
 
 Run a single node with Docker:
@@ -90,7 +90,7 @@ Run a single node with Docker:
 # Set correct HostIP here.
 export HostIP="192.168.199.105"
 
-docker run -d -p 2379:2379 -p 2380:2380 --name pd pingcap/pd \
+docker run -d -p 2379:2379 -p 2380:2380 --name pd tikv/pd \
           --name="pd" \
           --data-dir="pd" \
           --client-urls="http://0.0.0.0:2379" \
diff --git a/build.ps1 b/build.ps1
index b6b8d2e79..16133c6f0 100644
--- a/build.ps1
+++ b/build.ps1
@@ -1,5 +1,5 @@
 # For `--version`
-$PD_PKG = "github.com/pingcap/pd"
+$PD_PKG = "github.com/tikv/pd"
 $GO_LDFLAGS = "-X `"$PD_PKG/server.PDReleaseVersion=$(git describe --tags --dirty)`""
 $GO_LDFLAGS += " -X `"$PD_PKG/server.PDBuildTS=$(date -u '+%Y-%m-%d_%I:%M:%S')`""
 $GO_LDFLAGS += " -X `"$PD_PKG/server.PDGitHash=$(git rev-parse HEAD)`""
diff --git a/client/base_client.go b/client/base_client.go
index 508d40c2a..993609aa6 100644
--- a/client/base_client.go
+++ b/client/base_client.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/grpcutil"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/grpcutil"
 	"go.uber.org/zap"
 	"google.golang.org/grpc"
 )
diff --git a/cmd/pd-server/main.go b/cmd/pd-server/main.go
index 799d6139e..560690b8e 100644
--- a/cmd/pd-server/main.go
+++ b/cmd/pd-server/main.go
@@ -22,19 +22,19 @@ import (
 
 	grpcprometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
 	"github.com/pingcap/log"
-	dashboardapi "github.com/pingcap/pd/v3/pkg/dashboard/apiserver"
-	dashboardui "github.com/pingcap/pd/v3/pkg/dashboard/uiserver"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/pkg/metricutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/join"
 	"github.com/pkg/errors"
+	dashboardapi "github.com/tikv/pd/pkg/dashboard/apiserver"
+	dashboardui "github.com/tikv/pd/pkg/dashboard/uiserver"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/pkg/metricutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/join"
 	"go.uber.org/zap"
 
 	// Register schedulers.
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 func main() {
diff --git a/docs/development-workflow.md b/docs/development-workflow.md
index 4a95d72f5..59e85afdb 100644
--- a/docs/development-workflow.md
+++ b/docs/development-workflow.md
@@ -6,7 +6,7 @@ Start by forking the `pd` GitHub repository, make changes in a branch and then s
 ## Set up your pd GitHub Repository
 
 
-After forking the [PD upstream](https://github.com/pingcap/pd/fork) source repository to your personal repository. You can set up your personal development environment for PD project.
+After forking the [PD upstream](https://github.com/tikv/pd/fork) source repository to your personal repository. You can set up your personal development environment for PD project.
 
 ```sh
 $ cd $GOPATH/src/github.com/pingcap
@@ -18,7 +18,7 @@ $ cd pd
 
 
 ```sh
-$ git remote add upstream https://github.com/pingcap/pd
+$ git remote add upstream https://github.com/tikv/pd
 $ git fetch upstream
 $ git merge upstream/master
 ...
diff --git a/docs/development.md b/docs/development.md
index f0afbbd3f..7bfaed257 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -26,7 +26,7 @@ The full test suite is ran with:
 
 This takes a while to run. The test suite uses a fork of [gocheck](http://labix.org/gocheck). With gocheck, individual tests can be ran with this form:
 
-    go test github.com/pingcap/pd/server/api -check.f TestJsonRespondError
+    go test github.com/tikv/pd/server/api -check.f TestJsonRespondError
 
 # Changing APIs
 
diff --git a/go.mod b/go.mod
index 86e27b67f..1ac0db94e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/pingcap/pd/v3
+module github.com/tikv/pd
 
 go 1.13
 
diff --git a/pkg/apiutil/serverapi/middleware.go b/pkg/apiutil/serverapi/middleware.go
index 8be18ee5a..ea743eb3d 100644
--- a/pkg/apiutil/serverapi/middleware.go
+++ b/pkg/apiutil/serverapi/middleware.go
@@ -20,8 +20,8 @@ import (
 	"strings"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 	"github.com/urfave/negroni"
 	"go.uber.org/zap"
 )
diff --git a/pkg/dashboard/apiserver/apiserver.go b/pkg/dashboard/apiserver/apiserver.go
index fbab6b561..66a240d50 100644
--- a/pkg/dashboard/apiserver/apiserver.go
+++ b/pkg/dashboard/apiserver/apiserver.go
@@ -24,8 +24,8 @@ import (
 	"github.com/pingcap-incubator/tidb-dashboard/pkg/keyvisual"
 	"github.com/pingcap-incubator/tidb-dashboard/pkg/keyvisual/region"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/dashboard/keyvisual/input"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/dashboard/keyvisual/input"
+	"github.com/tikv/pd/server"
 	"go.uber.org/zap"
 )
 
diff --git a/pkg/dashboard/keyvisual/input/core.go b/pkg/dashboard/keyvisual/input/core.go
index 3b8d81fdb..6dc9e177f 100644
--- a/pkg/dashboard/keyvisual/input/core.go
+++ b/pkg/dashboard/keyvisual/input/core.go
@@ -16,9 +16,9 @@ package input
 import (
 	regionpkg "github.com/pingcap-incubator/tidb-dashboard/pkg/keyvisual/region"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 )
 
diff --git a/pkg/dashboard/uiserver/uiserver.go b/pkg/dashboard/uiserver/uiserver.go
index 0df0b2909..03c8955e9 100644
--- a/pkg/dashboard/uiserver/uiserver.go
+++ b/pkg/dashboard/uiserver/uiserver.go
@@ -19,7 +19,7 @@ import (
 	"net/http"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"go.uber.org/zap"
 )
 
diff --git a/pkg/metricutil/metricutil.go b/pkg/metricutil/metricutil.go
index e4737a259..64e7db47a 100644
--- a/pkg/metricutil/metricutil.go
+++ b/pkg/metricutil/metricutil.go
@@ -19,9 +19,9 @@ import (
 	"unicode"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus/push"
+	"github.com/tikv/pd/pkg/typeutil"
 	"go.uber.org/zap"
 )
 
diff --git a/pkg/mock/mockcluster/mockcluster.go b/pkg/mock/mockcluster/mockcluster.go
index 5dbaa45c3..0ffb9e5fb 100644
--- a/pkg/mock/mockcluster/mockcluster.go
+++ b/pkg/mock/mockcluster/mockcluster.go
@@ -21,12 +21,12 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/mock/mockid"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/mock/mockid"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/server/statistics"
 	"go.uber.org/zap"
 )
 
diff --git a/pkg/mock/mockhbstream/mockhbstream.go b/pkg/mock/mockhbstream/mockhbstream.go
index c6b1ecb40..760733c28 100644
--- a/pkg/mock/mockhbstream/mockhbstream.go
+++ b/pkg/mock/mockhbstream/mockhbstream.go
@@ -20,8 +20,8 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 // HeartbeatStream is used to mock HeartbeatStream for test use.
diff --git a/pkg/mock/mockoption/mockoption.go b/pkg/mock/mockoption/mockoption.go
index 0abffd562..a3c369b50 100644
--- a/pkg/mock/mockoption/mockoption.go
+++ b/pkg/mock/mockoption/mockoption.go
@@ -17,7 +17,7 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 const (
diff --git a/plugin/scheduler_example/evict_leader.go b/plugin/scheduler_example/evict_leader.go
index 2632b4a60..06c4c8642 100644
--- a/plugin/scheduler_example/evict_leader.go
+++ b/plugin/scheduler_example/evict_leader.go
@@ -21,15 +21,15 @@ import (
 
 	"github.com/gorilla/mux"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
-	"github.com/pingcap/pd/v3/server/schedulers"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
+	"github.com/tikv/pd/server/schedulers"
 	"github.com/unrolled/render"
 	"go.uber.org/zap"
 )
diff --git a/server/api/admin.go b/server/api/admin.go
index 9a925e7cb..5591e0881 100644
--- a/server/api/admin.go
+++ b/server/api/admin.go
@@ -18,8 +18,8 @@ import (
 	"strconv"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/cluster.go b/server/api/cluster.go
index 7891a5724..f0b4b34c4 100644
--- a/server/api/cluster.go
+++ b/server/api/cluster.go
@@ -16,7 +16,7 @@ package api
 import (
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/config.go b/server/api/config.go
index 6f06c0b73..d6b3a48f3 100644
--- a/server/api/config.go
+++ b/server/api/config.go
@@ -25,10 +25,10 @@ import (
 	"github.com/pingcap/errcode"
 	"github.com/pingcap/kvproto/pkg/configpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 	"github.com/unrolled/render"
 	"go.uber.org/zap"
 )
diff --git a/server/api/context.go b/server/api/context.go
index 5fa5d7e9d..dacd57f8e 100644
--- a/server/api/context.go
+++ b/server/api/context.go
@@ -16,7 +16,7 @@ package api
 import (
 	"context"
 
-	"github.com/pingcap/pd/v3/server/cluster"
+	"github.com/tikv/pd/server/cluster"
 )
 
 type contextKey int
diff --git a/server/api/diagnose.go b/server/api/diagnose.go
index 9e3a7c937..8b85db628 100644
--- a/server/api/diagnose.go
+++ b/server/api/diagnose.go
@@ -20,8 +20,8 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/health.go b/server/api/health.go
index c0a4cdfdf..feb983416 100644
--- a/server/api/health.go
+++ b/server/api/health.go
@@ -16,8 +16,8 @@ package api
 import (
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/hot_status.go b/server/api/hot_status.go
index 02c955362..834a91502 100644
--- a/server/api/hot_status.go
+++ b/server/api/hot_status.go
@@ -16,7 +16,7 @@ package api
 import (
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/label.go b/server/api/label.go
index aef93734a..b14a44525 100644
--- a/server/api/label.go
+++ b/server/api/label.go
@@ -19,8 +19,8 @@ import (
 	"strings"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/log.go b/server/api/log.go
index f4c05435d..41bca1810 100644
--- a/server/api/log.go
+++ b/server/api/log.go
@@ -20,8 +20,8 @@ import (
 	"net/http"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/member.go b/server/api/member.go
index 9547c6983..648029fb5 100644
--- a/server/api/member.go
+++ b/server/api/member.go
@@ -22,10 +22,10 @@ import (
 	"github.com/gorilla/mux"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/server"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 	"go.uber.org/zap"
 )
diff --git a/server/api/metric.go b/server/api/metric.go
index d6a931bc6..1719d12a1 100644
--- a/server/api/metric.go
+++ b/server/api/metric.go
@@ -19,8 +19,8 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/pingcap/pd/v3/pkg/apiutil/serverapi"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/apiutil/serverapi"
+	"github.com/tikv/pd/server"
 )
 
 type queryMetric struct {
diff --git a/server/api/middleware.go b/server/api/middleware.go
index c922a267c..f23c784e6 100644
--- a/server/api/middleware.go
+++ b/server/api/middleware.go
@@ -20,10 +20,10 @@ import (
 	"strings"
 
 	"github.com/BurntSushi/toml"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/operator.go b/server/api/operator.go
index e7cc3014b..894a267e4 100644
--- a/server/api/operator.go
+++ b/server/api/operator.go
@@ -18,9 +18,9 @@ import (
 	"strconv"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/schedule/operator"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/plugin.go b/server/api/plugin.go
index ab9cd8583..d7ecb3131 100644
--- a/server/api/plugin.go
+++ b/server/api/plugin.go
@@ -19,9 +19,9 @@ import (
 	"os"
 	"strings"
 
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/region.go b/server/api/region.go
index edacad0a5..4665bfbee 100644
--- a/server/api/region.go
+++ b/server/api/region.go
@@ -23,8 +23,8 @@ import (
 	"github.com/gorilla/mux"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/router.go b/server/api/router.go
index cd39e9f8d..2d939a51b 100644
--- a/server/api/router.go
+++ b/server/api/router.go
@@ -18,7 +18,7 @@ import (
 	"net/http/pprof"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/rule.go b/server/api/rule.go
index 5e7802440..0a4a57f1b 100644
--- a/server/api/rule.go
+++ b/server/api/rule.go
@@ -20,12 +20,12 @@ import (
 	"strconv"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/pkg/codec"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/pkg/codec"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/placement"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/scheduler.go b/server/api/scheduler.go
index c638cb545..1be4dc8f6 100644
--- a/server/api/scheduler.go
+++ b/server/api/scheduler.go
@@ -20,10 +20,10 @@ import (
 	"strings"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/schedulers"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/schedulers"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/server.go b/server/api/server.go
index caad84d72..470809585 100644
--- a/server/api/server.go
+++ b/server/api/server.go
@@ -18,8 +18,8 @@ import (
 	"net/http"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil/serverapi"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/apiutil/serverapi"
+	"github.com/tikv/pd/server"
 	"github.com/urfave/negroni"
 )
 
diff --git a/server/api/stats.go b/server/api/stats.go
index 6714ec59d..1f10a1a0a 100644
--- a/server/api/stats.go
+++ b/server/api/stats.go
@@ -16,7 +16,7 @@ package api
 import (
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/status.go b/server/api/status.go
index d2947c017..37e70e6fa 100644
--- a/server/api/status.go
+++ b/server/api/status.go
@@ -16,7 +16,7 @@ package api
 import (
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/store.go b/server/api/store.go
index 3218d4bc2..f58dad404 100644
--- a/server/api/store.go
+++ b/server/api/store.go
@@ -22,14 +22,14 @@ import (
 	"github.com/gorilla/mux"
 	"github.com/pingcap/errcode"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/storelimit"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/trend.go b/server/api/trend.go
index 229a5a711..f9e1e78d9 100644
--- a/server/api/trend.go
+++ b/server/api/trend.go
@@ -18,9 +18,9 @@ import (
 	"strconv"
 	"time"
 
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/statistics"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/util.go b/server/api/util.go
index cd25b7404..652eed42a 100644
--- a/server/api/util.go
+++ b/server/api/util.go
@@ -22,10 +22,10 @@ import (
 	"net/url"
 
 	"github.com/pingcap/kvproto/pkg/configpb"
-	pd "github.com/pingcap/pd/v3/client"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config_manager"
 	"github.com/pkg/errors"
+	pd "github.com/tikv/pd/client"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config_manager"
 )
 
 var (
diff --git a/server/api/version.go b/server/api/version.go
index 9aa902248..3dfadc519 100644
--- a/server/api/version.go
+++ b/server/api/version.go
@@ -3,7 +3,7 @@ package api
 import (
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/cluster/cluster.go b/server/cluster/cluster.go
index d6d6bb9e9..d4e27e6f7 100644
--- a/server/cluster/cluster.go
+++ b/server/cluster/cluster.go
@@ -27,20 +27,20 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/id"
-	syncer "github.com/pingcap/pd/v3/server/region_syncer"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/checker"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
-	"github.com/pingcap/pd/v3/server/statistics"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/id"
+	syncer "github.com/tikv/pd/server/region_syncer"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/checker"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/server/schedule/storelimit"
+	"github.com/tikv/pd/server/statistics"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/zap"
 )
diff --git a/server/cluster/cluster_stat.go b/server/cluster/cluster_stat.go
index a4ce1dfce..b2ccc3852 100644
--- a/server/cluster/cluster_stat.go
+++ b/server/cluster/cluster_stat.go
@@ -20,8 +20,8 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/slice"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/slice"
+	"github.com/tikv/pd/server/statistics"
 	"go.uber.org/zap"
 )
 
diff --git a/server/cluster/cluster_worker.go b/server/cluster/cluster_worker.go
index 6dea2d30b..0d6e4b7ac 100644
--- a/server/cluster/cluster_worker.go
+++ b/server/cluster/cluster_worker.go
@@ -20,9 +20,9 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
 	"go.uber.org/zap"
 )
 
diff --git a/server/cluster/coordinator.go b/server/cluster/coordinator.go
index 6529c049c..ea45a7f1d 100644
--- a/server/cluster/coordinator.go
+++ b/server/cluster/coordinator.go
@@ -21,14 +21,14 @@ import (
 	"time"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedulers"
-	"github.com/pingcap/pd/v3/server/statistics"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedulers"
+	"github.com/tikv/pd/server/statistics"
 	"go.uber.org/zap"
 )
 
diff --git a/server/cluster/store_limiter.go b/server/cluster/store_limiter.go
index 15bfe9ed4..6244c6b56 100644
--- a/server/cluster/store_limiter.go
+++ b/server/cluster/store_limiter.go
@@ -18,8 +18,8 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/storelimit"
 	"go.uber.org/zap"
 )
 
diff --git a/server/config/config.go b/server/config/config.go
index de63d8407..865810dfc 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -26,11 +26,11 @@ import (
 	"github.com/BurntSushi/toml"
 	"github.com/coreos/go-semver/semver"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/grpcutil"
-	"github.com/pingcap/pd/v3/pkg/metricutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/schedule"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/grpcutil"
+	"github.com/tikv/pd/pkg/metricutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/schedule"
 	"go.etcd.io/etcd/embed"
 	"go.uber.org/zap"
 	"go.uber.org/zap/zapcore"
diff --git a/server/config/option.go b/server/config/option.go
index 25abfdc36..5ef1b770b 100644
--- a/server/config/option.go
+++ b/server/config/option.go
@@ -23,10 +23,10 @@ import (
 	"github.com/coreos/go-semver/semver"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule"
 )
 
 // ScheduleOption is a wrapper to access the configuration safely.
diff --git a/server/config_manager/config_manager.go b/server/config_manager/config_manager.go
index 37a0a8e49..57e8014d3 100644
--- a/server/config_manager/config_manager.go
+++ b/server/config_manager/config_manager.go
@@ -23,10 +23,10 @@ import (
 
 	"github.com/BurntSushi/toml"
 	"github.com/pingcap/kvproto/pkg/configpb"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/member"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/member"
 )
 
 var (
diff --git a/server/core/basic_cluster.go b/server/core/basic_cluster.go
index 861afddaa..0065afa00 100644
--- a/server/core/basic_cluster.go
+++ b/server/core/basic_cluster.go
@@ -18,8 +18,8 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/slice"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/pkg/slice"
+	"github.com/tikv/pd/server/schedule/storelimit"
 	"go.uber.org/zap"
 )
 
diff --git a/server/core/region_storage.go b/server/core/region_storage.go
index c243e6c37..a059c671e 100644
--- a/server/core/region_storage.go
+++ b/server/core/region_storage.go
@@ -21,8 +21,8 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/kv"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/kv"
 	"go.uber.org/zap"
 )
 
diff --git a/server/core/region_tree.go b/server/core/region_tree.go
index e497d341c..a0bfdeadf 100644
--- a/server/core/region_tree.go
+++ b/server/core/region_tree.go
@@ -19,7 +19,7 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/btree"
+	"github.com/tikv/pd/pkg/btree"
 	"go.uber.org/zap"
 )
 
diff --git a/server/core/storage.go b/server/core/storage.go
index 1bb7bc8d2..d10135976 100644
--- a/server/core/storage.go
+++ b/server/core/storage.go
@@ -27,8 +27,8 @@ import (
 	"github.com/BurntSushi/toml"
 	"github.com/gogo/protobuf/proto"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/kv"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/kv"
 	"go.etcd.io/etcd/clientv3"
 )
 
diff --git a/server/core/store.go b/server/core/store.go
index 716350f3f..2f31b2d39 100644
--- a/server/core/store.go
+++ b/server/core/store.go
@@ -24,7 +24,7 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/server/schedule/storelimit"
 	"go.uber.org/zap"
 )
 
diff --git a/server/core/store_option.go b/server/core/store_option.go
index d362223be..b5daecd26 100644
--- a/server/core/store_option.go
+++ b/server/core/store_option.go
@@ -19,7 +19,7 @@ import (
 	"github.com/gogo/protobuf/proto"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/server/schedule/storelimit"
 )
 
 // StoreCreateOption is used to create store.
diff --git a/server/grpc_service.go b/server/grpc_service.go
index 4b9046960..2ca2ee7de 100644
--- a/server/grpc_service.go
+++ b/server/grpc_service.go
@@ -25,9 +25,9 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/core"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 	"google.golang.org/grpc/codes"
 	"google.golang.org/grpc/status"
diff --git a/server/handler.go b/server/handler.go
index a643c1d5b..d373a0f0b 100644
--- a/server/handler.go
+++ b/server/handler.go
@@ -27,16 +27,16 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
-	"github.com/pingcap/pd/v3/server/schedulers"
-	"github.com/pingcap/pd/v3/server/statistics"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/storelimit"
+	"github.com/tikv/pd/server/schedulers"
+	"github.com/tikv/pd/server/statistics"
 	"go.uber.org/zap"
 )
 
diff --git a/server/heartbeat_streams.go b/server/heartbeat_streams.go
index 61d40bdf0..0f3b52e91 100644
--- a/server/heartbeat_streams.go
+++ b/server/heartbeat_streams.go
@@ -22,10 +22,10 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/id/id.go b/server/id/id.go
index 5e2ab523e..c004de7f9 100644
--- a/server/id/id.go
+++ b/server/id/id.go
@@ -18,10 +18,10 @@ import (
 	"sync"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/kv"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/kv"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/zap"
 )
diff --git a/server/join/join.go b/server/join/join.go
index 2cdd8c3c4..b816287ea 100644
--- a/server/join/join.go
+++ b/server/join/join.go
@@ -23,9 +23,9 @@ import (
 
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/server/config"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/server/config"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/embed"
 	"go.uber.org/zap"
diff --git a/server/kv/etcd_kv.go b/server/kv/etcd_kv.go
index 7621d36a9..959c4b37d 100644
--- a/server/kv/etcd_kv.go
+++ b/server/kv/etcd_kv.go
@@ -20,8 +20,8 @@ import (
 	"time"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/zap"
 )
diff --git a/server/member/leader.go b/server/member/leader.go
index 164dfb2bb..acb82166f 100644
--- a/server/member/leader.go
+++ b/server/member/leader.go
@@ -26,10 +26,10 @@ import (
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/kv"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/kv"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/embed"
 	"go.etcd.io/etcd/mvcc/mvccpb"
diff --git a/server/region_syncer/client.go b/server/region_syncer/client.go
index 8dd035a02..b5bf63206 100644
--- a/server/region_syncer/client.go
+++ b/server/region_syncer/client.go
@@ -19,9 +19,9 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/grpcutil"
-	"github.com/pingcap/pd/v3/server/core"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/grpcutil"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 	"google.golang.org/grpc"
 	"google.golang.org/grpc/backoff"
diff --git a/server/region_syncer/history_buffer.go b/server/region_syncer/history_buffer.go
index 8d2420841..0ee891b1c 100644
--- a/server/region_syncer/history_buffer.go
+++ b/server/region_syncer/history_buffer.go
@@ -18,8 +18,8 @@ import (
 	"sync"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
 	"go.uber.org/zap"
 )
 
diff --git a/server/region_syncer/server.go b/server/region_syncer/server.go
index 215c285c3..1cc39c58b 100644
--- a/server/region_syncer/server.go
+++ b/server/region_syncer/server.go
@@ -23,9 +23,9 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/grpcutil"
-	"github.com/pingcap/pd/v3/server/core"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/grpcutil"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 	"google.golang.org/grpc/codes"
 	"google.golang.org/grpc/status"
diff --git a/server/schedule/checker/learner_checker.go b/server/schedule/checker/learner_checker.go
index 860211880..0167580e8 100644
--- a/server/schedule/checker/learner_checker.go
+++ b/server/schedule/checker/learner_checker.go
@@ -15,9 +15,9 @@ package checker
 
 import (
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/checker/merge_checker.go b/server/schedule/checker/merge_checker.go
index c55421941..3202f68f1 100644
--- a/server/schedule/checker/merge_checker.go
+++ b/server/schedule/checker/merge_checker.go
@@ -19,12 +19,12 @@ import (
 	"time"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/cache"
-	"github.com/pingcap/pd/v3/pkg/codec"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
+	"github.com/tikv/pd/pkg/cache"
+	"github.com/tikv/pd/pkg/codec"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/checker/replica_checker.go b/server/schedule/checker/replica_checker.go
index 38798c9f3..3e8d41127 100644
--- a/server/schedule/checker/replica_checker.go
+++ b/server/schedule/checker/replica_checker.go
@@ -18,11 +18,11 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/checker/rule_checker.go b/server/schedule/checker/rule_checker.go
index 7268b0b4a..cbc2a2fb7 100644
--- a/server/schedule/checker/rule_checker.go
+++ b/server/schedule/checker/rule_checker.go
@@ -17,13 +17,13 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/server/schedule/selector"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/checker_controller.go b/server/schedule/checker_controller.go
index 88a64a745..cdfa5bf0b 100644
--- a/server/schedule/checker_controller.go
+++ b/server/schedule/checker_controller.go
@@ -16,11 +16,11 @@ package schedule
 import (
 	"context"
 
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/checker"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/checker"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
 )
 
 // CheckerController is used to manage all checkers.
diff --git a/server/schedule/filter/filters.go b/server/schedule/filter/filters.go
index a5f619c16..886125b79 100644
--- a/server/schedule/filter/filters.go
+++ b/server/schedule/filter/filters.go
@@ -16,12 +16,12 @@ package filter
 import (
 	"fmt"
 
-	"github.com/pingcap/pd/v3/pkg/cache"
-	"github.com/pingcap/pd/v3/pkg/slice"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/pkg/cache"
+	"github.com/tikv/pd/pkg/slice"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/server/schedule/storelimit"
 )
 
 // revive:disable:unused-parameter
diff --git a/server/schedule/operator/builder.go b/server/schedule/operator/builder.go
index 63326f03a..9f70c4190 100644
--- a/server/schedule/operator/builder.go
+++ b/server/schedule/operator/builder.go
@@ -18,10 +18,10 @@ import (
 	"sort"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/placement"
 )
 
 // Builder is used to create operators. Usage:
diff --git a/server/schedule/operator/create_operator.go b/server/schedule/operator/create_operator.go
index 230326993..ee6a9fc92 100644
--- a/server/schedule/operator/create_operator.go
+++ b/server/schedule/operator/create_operator.go
@@ -20,7 +20,7 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 // CreateAddPeerOperator creates an operator that adds a new peer.
diff --git a/server/schedule/operator/influence.go b/server/schedule/operator/influence.go
index 76dabb1dd..1e02a388a 100644
--- a/server/schedule/operator/influence.go
+++ b/server/schedule/operator/influence.go
@@ -14,8 +14,8 @@
 package operator
 
 import (
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/storelimit"
 )
 
 // OpInfluence records the influence of the cluster.
diff --git a/server/schedule/operator/operator.go b/server/schedule/operator/operator.go
index 1c353fb8e..464cad367 100644
--- a/server/schedule/operator/operator.go
+++ b/server/schedule/operator/operator.go
@@ -21,10 +21,10 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
 	"github.com/prometheus/client_golang/prometheus"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
 )
 
 const (
diff --git a/server/schedule/operator/step.go b/server/schedule/operator/step.go
index bc6998033..36cdd8d65 100644
--- a/server/schedule/operator/step.go
+++ b/server/schedule/operator/step.go
@@ -20,8 +20,8 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/storelimit"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/operator_controller.go b/server/schedule/operator_controller.go
index 80ae91693..6c51a754c 100644
--- a/server/schedule/operator_controller.go
+++ b/server/schedule/operator_controller.go
@@ -27,11 +27,11 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/cache"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/pkg/cache"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/storelimit"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/operator_queue.go b/server/schedule/operator_queue.go
index 3860e2eb5..b23a55047 100644
--- a/server/schedule/operator_queue.go
+++ b/server/schedule/operator_queue.go
@@ -16,7 +16,7 @@ package schedule
 import (
 	"time"
 
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 type operatorWithTime struct {
diff --git a/server/schedule/opt/healthy.go b/server/schedule/opt/healthy.go
index 28dde2072..2932f9656 100644
--- a/server/schedule/opt/healthy.go
+++ b/server/schedule/opt/healthy.go
@@ -13,7 +13,7 @@
 
 package opt
 
-import "github.com/pingcap/pd/v3/server/core"
+import "github.com/tikv/pd/server/core"
 
 // IsRegionHealthy checks if a region is healthy for scheduling. It requires the
 // region does not have any down or pending peers. And when placement rules
diff --git a/server/schedule/opt/opts.go b/server/schedule/opt/opts.go
index af99699fd..3a94b9d21 100644
--- a/server/schedule/opt/opts.go
+++ b/server/schedule/opt/opts.go
@@ -18,9 +18,9 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/server/statistics"
 )
 
 // Options for schedulers.
diff --git a/server/schedule/placement/fit.go b/server/schedule/placement/fit.go
index 8aeea4d92..732ddb86f 100644
--- a/server/schedule/placement/fit.go
+++ b/server/schedule/placement/fit.go
@@ -17,8 +17,8 @@ import (
 	"sort"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/slice"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/pkg/slice"
+	"github.com/tikv/pd/server/core"
 )
 
 // RegionFit is the result of fitting a region's peers to rule list.
diff --git a/server/schedule/placement/label_constraint.go b/server/schedule/placement/label_constraint.go
index f64c4bbde..b4dcc4f86 100644
--- a/server/schedule/placement/label_constraint.go
+++ b/server/schedule/placement/label_constraint.go
@@ -14,8 +14,8 @@
 package placement
 
 import (
-	"github.com/pingcap/pd/v3/pkg/slice"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/pkg/slice"
+	"github.com/tikv/pd/server/core"
 )
 
 // LabelConstraintOp defines how a LabelConstraint matches a store. It can be one of
diff --git a/server/schedule/placement/rule_manager.go b/server/schedule/placement/rule_manager.go
index 4d143ea1b..cb1b968ee 100644
--- a/server/schedule/placement/rule_manager.go
+++ b/server/schedule/placement/rule_manager.go
@@ -20,8 +20,8 @@ import (
 	"sync"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/range_cluster.go b/server/schedule/range_cluster.go
index 59d128e2b..50051743b 100644
--- a/server/schedule/range_cluster.go
+++ b/server/schedule/range_cluster.go
@@ -16,8 +16,8 @@ package schedule
 import (
 	"github.com/gogo/protobuf/proto"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 // RangeCluster isolates the cluster by range.
diff --git a/server/schedule/region_scatterer.go b/server/schedule/region_scatterer.go
index 273d13a96..763ad177d 100644
--- a/server/schedule/region_scatterer.go
+++ b/server/schedule/region_scatterer.go
@@ -19,11 +19,11 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/scheduler.go b/server/schedule/scheduler.go
index dc6df1023..562cf2114 100644
--- a/server/schedule/scheduler.go
+++ b/server/schedule/scheduler.go
@@ -20,10 +20,10 @@ import (
 	"time"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedule/selector/selector.go b/server/schedule/selector/selector.go
index 8548548f4..a5dff3f44 100644
--- a/server/schedule/selector/selector.go
+++ b/server/schedule/selector/selector.go
@@ -16,9 +16,9 @@ package selector
 import (
 	"math/rand"
 
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 // BalanceSelector selects source/target from store candidates based on their
diff --git a/server/schedule/waiting_operator.go b/server/schedule/waiting_operator.go
index b39678274..3e8368dfc 100644
--- a/server/schedule/waiting_operator.go
+++ b/server/schedule/waiting_operator.go
@@ -17,7 +17,7 @@ import (
 	"math/rand"
 	"time"
 
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 // PriorityWeight is used to represent the weight of different priorities of operators.
diff --git a/server/schedulers/adjacent_region.go b/server/schedulers/adjacent_region.go
index 53fe95c69..c7bd93051 100644
--- a/server/schedulers/adjacent_region.go
+++ b/server/schedulers/adjacent_region.go
@@ -20,13 +20,13 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/balance_leader.go b/server/schedulers/balance_leader.go
index 078be4bd5..52f93d580 100644
--- a/server/schedulers/balance_leader.go
+++ b/server/schedulers/balance_leader.go
@@ -18,13 +18,13 @@ import (
 	"strconv"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
 	"github.com/pkg/errors"
 	"github.com/prometheus/client_golang/prometheus"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/balance_region.go b/server/schedulers/balance_region.go
index f33304ab1..7ea102288 100644
--- a/server/schedulers/balance_region.go
+++ b/server/schedulers/balance_region.go
@@ -19,14 +19,14 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/checker"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
 	"github.com/pkg/errors"
 	"github.com/prometheus/client_golang/prometheus"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/checker"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/base_scheduler.go b/server/schedulers/base_scheduler.go
index f88f9a430..a068ed8f4 100644
--- a/server/schedulers/base_scheduler.go
+++ b/server/schedulers/base_scheduler.go
@@ -19,8 +19,8 @@ import (
 	"time"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 // options for interval of schedulers
diff --git a/server/schedulers/evict_leader.go b/server/schedulers/evict_leader.go
index a0cf8fd0b..8ae2aafd4 100644
--- a/server/schedulers/evict_leader.go
+++ b/server/schedulers/evict_leader.go
@@ -20,14 +20,14 @@ import (
 
 	"github.com/gorilla/mux"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 	"github.com/unrolled/render"
 	"go.uber.org/zap"
 )
diff --git a/server/schedulers/grant_leader.go b/server/schedulers/grant_leader.go
index 8b2ffbe84..761e89366 100644
--- a/server/schedulers/grant_leader.go
+++ b/server/schedulers/grant_leader.go
@@ -20,12 +20,12 @@ import (
 
 	"github.com/gorilla/mux"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"github.com/unrolled/render"
 	"go.uber.org/zap"
 )
diff --git a/server/schedulers/hot_region.go b/server/schedulers/hot_region.go
index cf02fcdf4..824bba064 100644
--- a/server/schedulers/hot_region.go
+++ b/server/schedulers/hot_region.go
@@ -25,13 +25,13 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/statistics"
 	"github.com/prometheus/client_golang/prometheus"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/statistics"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/hot_region_config.go b/server/schedulers/hot_region_config.go
index 27361a0e5..42f4b14b5 100644
--- a/server/schedulers/hot_region_config.go
+++ b/server/schedulers/hot_region_config.go
@@ -24,9 +24,9 @@ import (
 	"time"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/statistics"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/schedulers/label.go b/server/schedulers/label.go
index 4020ce875..b85c76293 100644
--- a/server/schedulers/label.go
+++ b/server/schedulers/label.go
@@ -15,13 +15,13 @@ package schedulers
 
 import (
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/random_merge.go b/server/schedulers/random_merge.go
index d06e57cf9..889a450ff 100644
--- a/server/schedulers/random_merge.go
+++ b/server/schedulers/random_merge.go
@@ -17,14 +17,14 @@ import (
 	"math/rand"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/checker"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/checker"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/scatter_range.go b/server/schedulers/scatter_range.go
index d841a4295..06640d0fb 100644
--- a/server/schedulers/scatter_range.go
+++ b/server/schedulers/scatter_range.go
@@ -19,12 +19,12 @@ import (
 	"sync"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/schedulers/shuffle_hot_region.go b/server/schedulers/shuffle_hot_region.go
index f1c50d5c2..25fa7fd02 100644
--- a/server/schedulers/shuffle_hot_region.go
+++ b/server/schedulers/shuffle_hot_region.go
@@ -20,11 +20,11 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/shuffle_leader.go b/server/schedulers/shuffle_leader.go
index ce86efd8a..3682f7998 100644
--- a/server/schedulers/shuffle_leader.go
+++ b/server/schedulers/shuffle_leader.go
@@ -15,13 +15,13 @@ package schedulers
 
 import (
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 	"go.uber.org/zap"
 )
 
diff --git a/server/schedulers/shuffle_region.go b/server/schedulers/shuffle_region.go
index 5db5cf55f..513df1cab 100644
--- a/server/schedulers/shuffle_region.go
+++ b/server/schedulers/shuffle_region.go
@@ -17,13 +17,13 @@ import (
 	"net/http"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/selector"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/filter"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/selector"
 )
 
 const (
diff --git a/server/schedulers/shuffle_region_config.go b/server/schedulers/shuffle_region_config.go
index ffee3fb13..bed9e32b6 100644
--- a/server/schedulers/shuffle_region_config.go
+++ b/server/schedulers/shuffle_region_config.go
@@ -18,11 +18,11 @@ import (
 	"sync"
 
 	"github.com/gorilla/mux"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/pkg/slice"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/pkg/slice"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/placement"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/schedulers/utils.go b/server/schedulers/utils.go
index e6a1e1db9..daaff4efe 100644
--- a/server/schedulers/utils.go
+++ b/server/schedulers/utils.go
@@ -21,11 +21,11 @@ import (
 
 	"github.com/montanaflynn/stats"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/statistics"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/statistics"
 	"go.uber.org/zap"
 )
 
diff --git a/server/server.go b/server/server.go
index 18d9f7dc2..87e7230bb 100644
--- a/server/server.go
+++ b/server/server.go
@@ -38,22 +38,22 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	pd "github.com/pingcap/pd/v3/client"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/grpcutil"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
-	configmanager "github.com/pingcap/pd/v3/server/config_manager"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/id"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/member"
-	syncer "github.com/pingcap/pd/v3/server/region_syncer"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/tso"
 	"github.com/pkg/errors"
+	pd "github.com/tikv/pd/client"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/grpcutil"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
+	configmanager "github.com/tikv/pd/server/config_manager"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/id"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/member"
+	syncer "github.com/tikv/pd/server/region_syncer"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/tso"
 	"github.com/urfave/negroni"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/embed"
diff --git a/server/statistics/hot_cache.go b/server/statistics/hot_cache.go
index 078aa16c8..1e4a0fffe 100644
--- a/server/statistics/hot_cache.go
+++ b/server/statistics/hot_cache.go
@@ -16,7 +16,7 @@ package statistics
 import (
 	"math/rand"
 
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 // Denoising is an option to calculate flow base on the real heartbeats. Should
diff --git a/server/statistics/hot_peer_cache.go b/server/statistics/hot_peer_cache.go
index 88d62379c..38f048504 100644
--- a/server/statistics/hot_peer_cache.go
+++ b/server/statistics/hot_peer_cache.go
@@ -18,7 +18,7 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 const (
diff --git a/server/statistics/region.go b/server/statistics/region.go
index b75ed31d0..e9d2bfafb 100644
--- a/server/statistics/region.go
+++ b/server/statistics/region.go
@@ -14,7 +14,7 @@
 package statistics
 
 import (
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 const (
diff --git a/server/statistics/region_collection.go b/server/statistics/region_collection.go
index 118cf4c61..62b97280b 100644
--- a/server/statistics/region_collection.go
+++ b/server/statistics/region_collection.go
@@ -14,7 +14,7 @@
 package statistics
 
 import (
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 // RegionStatisticType represents the type of the region's status.
diff --git a/server/statistics/region_stat_informer.go b/server/statistics/region_stat_informer.go
index de329e101..2675b31eb 100644
--- a/server/statistics/region_stat_informer.go
+++ b/server/statistics/region_stat_informer.go
@@ -13,7 +13,7 @@
 
 package statistics
 
-import "github.com/pingcap/pd/v3/server/core"
+import "github.com/tikv/pd/server/core"
 
 // RegionStatInformer provides access to a shared informer of statistics.
 type RegionStatInformer interface {
diff --git a/server/statistics/schedule_options.go b/server/statistics/schedule_options.go
index 4b39f5df3..bdffd7c04 100644
--- a/server/statistics/schedule_options.go
+++ b/server/statistics/schedule_options.go
@@ -16,7 +16,7 @@ package statistics
 import (
 	"time"
 
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 // ScheduleOptions is an interface to access configurations.
diff --git a/server/statistics/store.go b/server/statistics/store.go
index 8e9a20f92..c63e82220 100644
--- a/server/statistics/store.go
+++ b/server/statistics/store.go
@@ -19,7 +19,7 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 )
 
diff --git a/server/statistics/store_collection.go b/server/statistics/store_collection.go
index 23f6ccf4e..208c57c60 100644
--- a/server/statistics/store_collection.go
+++ b/server/statistics/store_collection.go
@@ -18,7 +18,7 @@ import (
 	"strconv"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 const (
diff --git a/server/tso/tso.go b/server/tso/tso.go
index acc14b37c..65f40f51f 100644
--- a/server/tso/tso.go
+++ b/server/tso/tso.go
@@ -22,12 +22,12 @@ import (
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/tsoutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/member"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/tsoutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/member"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/zap"
 )
diff --git a/server/util.go b/server/util.go
index eefa79ccf..bc2607226 100644
--- a/server/util.go
+++ b/server/util.go
@@ -23,11 +23,11 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/zap"
 )
diff --git a/tools/pd-analysis/main.go b/tools/pd-analysis/main.go
index b48981b51..acbfa2fd1 100644
--- a/tools/pd-analysis/main.go
+++ b/tools/pd-analysis/main.go
@@ -18,7 +18,7 @@ import (
 	"os"
 
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/tools/pd-analysis/analysis"
+	"github.com/tikv/pd/tools/pd-analysis/analysis"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-backup/main.go b/tools/pd-backup/main.go
index 76488dd4d..80ebe32eb 100644
--- a/tools/pd-backup/main.go
+++ b/tools/pd-backup/main.go
@@ -20,7 +20,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/pingcap/pd/v3/tools/pd-backup/pdbackup"
+	"github.com/tikv/pd/tools/pd-backup/pdbackup"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/pkg/transport"
 )
diff --git a/tools/pd-backup/pdbackup/backup.go b/tools/pd-backup/pdbackup/backup.go
index 25fd5eeee..71df2595b 100644
--- a/tools/pd-backup/pdbackup/backup.go
+++ b/tools/pd-backup/pdbackup/backup.go
@@ -24,9 +24,9 @@ import (
 	"path"
 	"strconv"
 
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/config"
 	"go.etcd.io/etcd/clientv3"
 )
 
diff --git a/tools/pd-ctl/README.md b/tools/pd-ctl/README.md
index 931bec9cd..52b5a250b 100644
--- a/tools/pd-ctl/README.md
+++ b/tools/pd-ctl/README.md
@@ -5,7 +5,7 @@ pd-ctl is a command line tool for PD, pd-ctl obtains the state information of th
 
 ## Build
 1. [Go](https://golang.org/) Version 1.9 or later
-2. In the root directory of the [PD project](https://github.com/pingcap/pd), use the `make` command to compile and generate `bin/pd-ctl`
+2. In the root directory of the [PD project](https://github.com/tikv/pd), use the `make` command to compile and generate `bin/pd-ctl`
 
 > **Note:** Generally, you don't need to compile source code as the PD Control tool already exists in the released Binary or Docker. However, dev users can refer to the above instruction for compiling source code.
 
diff --git a/tools/pd-ctl/main.go b/tools/pd-ctl/main.go
index 713a654a1..856222bc7 100644
--- a/tools/pd-ctl/main.go
+++ b/tools/pd-ctl/main.go
@@ -24,9 +24,9 @@ import (
 
 	"github.com/chzyer/readline"
 	shellwords "github.com/mattn/go-shellwords"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tools/pd-ctl/pdctl"
 	flag "github.com/spf13/pflag"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tools/pd-ctl/pdctl"
 )
 
 var (
diff --git a/tools/pd-ctl/pdctl/command/config_command.go b/tools/pd-ctl/pdctl/command/config_command.go
index 1bb9bb2c0..eec68c31d 100644
--- a/tools/pd-ctl/pdctl/command/config_command.go
+++ b/tools/pd-ctl/pdctl/command/config_command.go
@@ -22,8 +22,8 @@ import (
 	"path"
 	"strconv"
 
-	"github.com/pingcap/pd/v3/server/schedule/placement"
 	"github.com/spf13/cobra"
+	"github.com/tikv/pd/server/schedule/placement"
 )
 
 var (
diff --git a/tools/pd-ctl/pdctl/command/plugin_command.go b/tools/pd-ctl/pdctl/command/plugin_command.go
index 917e7138e..e88ca9cd6 100644
--- a/tools/pd-ctl/pdctl/command/plugin_command.go
+++ b/tools/pd-ctl/pdctl/command/plugin_command.go
@@ -18,8 +18,8 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/pingcap/pd/v3/server/cluster"
 	"github.com/spf13/cobra"
+	"github.com/tikv/pd/server/cluster"
 )
 
 var (
diff --git a/tools/pd-ctl/pdctl/command/tso_command.go b/tools/pd-ctl/pdctl/command/tso_command.go
index 846217277..5eb86271d 100644
--- a/tools/pd-ctl/pdctl/command/tso_command.go
+++ b/tools/pd-ctl/pdctl/command/tso_command.go
@@ -16,8 +16,8 @@ package command
 import (
 	"strconv"
 
-	"github.com/pingcap/pd/v3/pkg/tsoutil"
 	"github.com/spf13/cobra"
+	"github.com/tikv/pd/pkg/tsoutil"
 )
 
 // NewTSOCommand return a ping subcommand of rootCmd
diff --git a/tools/pd-ctl/pdctl/ctl.go b/tools/pd-ctl/pdctl/ctl.go
index 276d2d0dd..36f066379 100644
--- a/tools/pd-ctl/pdctl/ctl.go
+++ b/tools/pd-ctl/pdctl/ctl.go
@@ -16,8 +16,8 @@ package pdctl
 import (
 	"os"
 
-	"github.com/pingcap/pd/v3/tools/pd-ctl/pdctl/command"
 	"github.com/spf13/cobra"
+	"github.com/tikv/pd/tools/pd-ctl/pdctl/command"
 )
 
 // CommandFlags are flags that used in all Commands
diff --git a/tools/pd-recover/README.md b/tools/pd-recover/README.md
index 245bbe67c..2c8c9f76f 100644
--- a/tools/pd-recover/README.md
+++ b/tools/pd-recover/README.md
@@ -5,7 +5,7 @@ pd-recover is a disaster recovery tool of PD, used to recover the PD cluster whi
 
 ## Build
 1. [Go](https://golang.org/) Version 1.9 or later
-2. In the root directory of the [PD project](https://github.com/pingcap/pd), use the `make` command to compile and generate `bin/pd-recover`
+2. In the root directory of the [PD project](https://github.com/tikv/pd), use the `make` command to compile and generate `bin/pd-recover`
 
 
 ## Usage
diff --git a/tools/pd-recover/main.go b/tools/pd-recover/main.go
index 4193d4f57..8fd3a989b 100644
--- a/tools/pd-recover/main.go
+++ b/tools/pd-recover/main.go
@@ -11,8 +11,8 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/pkg/transport"
 )
diff --git a/tools/pd-simulator/README.md b/tools/pd-simulator/README.md
index 0df2ab06c..58c0662e1 100644
--- a/tools/pd-simulator/README.md
+++ b/tools/pd-simulator/README.md
@@ -5,7 +5,7 @@ pd-simulator is a tool to reproduce some scenarios and evaluate the schedulers'
 
 ## Build
 1. [Go](https://golang.org/) Version 1.9 or later
-2. In the root directory of the [PD project](https://github.com/pingcap/pd), use the `make simulator` command to compile and generate `bin/pd-simulator`
+2. In the root directory of the [PD project](https://github.com/tikv/pd), use the `make simulator` command to compile and generate `bin/pd-simulator`
 
 
 ## Usage
diff --git a/tools/pd-simulator/main.go b/tools/pd-simulator/main.go
index 225ec63c8..e888b1147 100644
--- a/tools/pd-simulator/main.go
+++ b/tools/pd-simulator/main.go
@@ -24,19 +24,19 @@ import (
 
 	"github.com/BurntSushi/toml"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/logutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/statistics"
-	"github.com/pingcap/pd/v3/tools/pd-analysis/analysis"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/cases"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/pkg/logutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/statistics"
+	"github.com/tikv/pd/tools/pd-analysis/analysis"
+	"github.com/tikv/pd/tools/pd-simulator/simulator"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/cases"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 
 	// Register schedulers.
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 var (
diff --git a/tools/pd-simulator/simulator/cases/add_nodes.go b/tools/pd-simulator/simulator/cases/add_nodes.go
index 3dabf943e..6b9d4c303 100644
--- a/tools/pd-simulator/simulator/cases/add_nodes.go
+++ b/tools/pd-simulator/simulator/cases/add_nodes.go
@@ -17,9 +17,9 @@ import (
 	"math/rand"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/add_nodes_dynamic.go b/tools/pd-simulator/simulator/cases/add_nodes_dynamic.go
index c089d1e08..97bcc4e6d 100644
--- a/tools/pd-simulator/simulator/cases/add_nodes_dynamic.go
+++ b/tools/pd-simulator/simulator/cases/add_nodes_dynamic.go
@@ -17,9 +17,9 @@ import (
 	"math/rand"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/balance_leader.go b/tools/pd-simulator/simulator/cases/balance_leader.go
index ab5ac1489..52334dd06 100644
--- a/tools/pd-simulator/simulator/cases/balance_leader.go
+++ b/tools/pd-simulator/simulator/cases/balance_leader.go
@@ -15,9 +15,9 @@ package cases
 
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/cases.go b/tools/pd-simulator/simulator/cases/cases.go
index e25624c4c..1a394b902 100644
--- a/tools/pd-simulator/simulator/cases/cases.go
+++ b/tools/pd-simulator/simulator/cases/cases.go
@@ -15,9 +15,9 @@ package cases
 
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 )
 
 // Store is used to simulate tikv.
diff --git a/tools/pd-simulator/simulator/cases/delete_nodes.go b/tools/pd-simulator/simulator/cases/delete_nodes.go
index d65108beb..32bf10236 100644
--- a/tools/pd-simulator/simulator/cases/delete_nodes.go
+++ b/tools/pd-simulator/simulator/cases/delete_nodes.go
@@ -17,9 +17,9 @@ import (
 	"math/rand"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/hot_read.go b/tools/pd-simulator/simulator/cases/hot_read.go
index f7a3b6c93..7bd634e42 100644
--- a/tools/pd-simulator/simulator/cases/hot_read.go
+++ b/tools/pd-simulator/simulator/cases/hot_read.go
@@ -17,9 +17,9 @@ import (
 	"math/rand"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/hot_write.go b/tools/pd-simulator/simulator/cases/hot_write.go
index ba9c9c537..94953e067 100644
--- a/tools/pd-simulator/simulator/cases/hot_write.go
+++ b/tools/pd-simulator/simulator/cases/hot_write.go
@@ -19,9 +19,9 @@ import (
 	"go.uber.org/zap"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 )
 
 func newHotWrite() *Case {
diff --git a/tools/pd-simulator/simulator/cases/import_data.go b/tools/pd-simulator/simulator/cases/import_data.go
index d6e885462..664230ed0 100644
--- a/tools/pd-simulator/simulator/cases/import_data.go
+++ b/tools/pd-simulator/simulator/cases/import_data.go
@@ -21,10 +21,10 @@ import (
 	"go.uber.org/zap"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/codec"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/pkg/codec"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 )
 
 func newImportData() *Case {
diff --git a/tools/pd-simulator/simulator/cases/makeup_down_replica.go b/tools/pd-simulator/simulator/cases/makeup_down_replica.go
index ec756c324..cf8a62adf 100644
--- a/tools/pd-simulator/simulator/cases/makeup_down_replica.go
+++ b/tools/pd-simulator/simulator/cases/makeup_down_replica.go
@@ -15,9 +15,9 @@ package cases
 
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/redundant_balance_region.go b/tools/pd-simulator/simulator/cases/redundant_balance_region.go
index 1260f070d..ce65ee2de 100644
--- a/tools/pd-simulator/simulator/cases/redundant_balance_region.go
+++ b/tools/pd-simulator/simulator/cases/redundant_balance_region.go
@@ -17,9 +17,9 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/region_merge.go b/tools/pd-simulator/simulator/cases/region_merge.go
index 4c7f4e68e..071c35e33 100644
--- a/tools/pd-simulator/simulator/cases/region_merge.go
+++ b/tools/pd-simulator/simulator/cases/region_merge.go
@@ -17,9 +17,9 @@ import (
 	"math/rand"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/cases/region_split.go b/tools/pd-simulator/simulator/cases/region_split.go
index f7d70347f..730ae84ad 100644
--- a/tools/pd-simulator/simulator/cases/region_split.go
+++ b/tools/pd-simulator/simulator/cases/region_split.go
@@ -15,9 +15,9 @@ package cases
 
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/client.go b/tools/pd-simulator/simulator/client.go
index a5ba6a78b..9f6933704 100644
--- a/tools/pd-simulator/simulator/client.go
+++ b/tools/pd-simulator/simulator/client.go
@@ -23,9 +23,9 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"google.golang.org/grpc"
 )
 
diff --git a/tools/pd-simulator/simulator/config.go b/tools/pd-simulator/simulator/config.go
index 1a59109c9..80cb591e4 100644
--- a/tools/pd-simulator/simulator/config.go
+++ b/tools/pd-simulator/simulator/config.go
@@ -5,9 +5,9 @@ import (
 	"io/ioutil"
 	"time"
 
-	"github.com/pingcap/pd/v3/pkg/tempurl"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/tempurl"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/config"
 )
 
 const (
diff --git a/tools/pd-simulator/simulator/conn.go b/tools/pd-simulator/simulator/conn.go
index 7f56aa8b5..fd2524a0c 100644
--- a/tools/pd-simulator/simulator/conn.go
+++ b/tools/pd-simulator/simulator/conn.go
@@ -15,7 +15,7 @@ package simulator
 
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/cases"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/cases"
 )
 
 // Connection records the informations of connection among nodes.
diff --git a/tools/pd-simulator/simulator/drive.go b/tools/pd-simulator/simulator/drive.go
index 921b19ce8..1aa7cc4ee 100644
--- a/tools/pd-simulator/simulator/drive.go
+++ b/tools/pd-simulator/simulator/drive.go
@@ -20,11 +20,11 @@ import (
 	"go.uber.org/zap"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/cases"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/cases"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 )
 
 // Driver promotes the cluster status change.
diff --git a/tools/pd-simulator/simulator/event.go b/tools/pd-simulator/simulator/event.go
index 647cf2325..1b3a9a0df 100644
--- a/tools/pd-simulator/simulator/event.go
+++ b/tools/pd-simulator/simulator/event.go
@@ -16,9 +16,9 @@ package simulator
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/cases"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/cases"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/node.go b/tools/pd-simulator/simulator/node.go
index 8f03bc10d..ccd915d4a 100644
--- a/tools/pd-simulator/simulator/node.go
+++ b/tools/pd-simulator/simulator/node.go
@@ -24,9 +24,9 @@ import (
 
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/cases"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/info"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/cases"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/info"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 )
 
 const (
diff --git a/tools/pd-simulator/simulator/raft.go b/tools/pd-simulator/simulator/raft.go
index ece0e15f1..d61022950 100644
--- a/tools/pd-simulator/simulator/raft.go
+++ b/tools/pd-simulator/simulator/raft.go
@@ -18,10 +18,10 @@ import (
 	"sync"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/cases"
-	"github.com/pingcap/pd/v3/tools/pd-simulator/simulator/simutil"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/cases"
+	"github.com/tikv/pd/tools/pd-simulator/simulator/simutil"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/pd-simulator/simulator/simutil/key.go b/tools/pd-simulator/simulator/simutil/key.go
index 3e26d4236..1d03dcf6b 100644
--- a/tools/pd-simulator/simulator/simutil/key.go
+++ b/tools/pd-simulator/simulator/simutil/key.go
@@ -18,8 +18,8 @@ import (
 	"math/rand"
 	"sort"
 
-	"github.com/pingcap/pd/v3/pkg/codec"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/codec"
 )
 
 const (
diff --git a/tools/pd-simulator/simulator/task.go b/tools/pd-simulator/simulator/task.go
index 5c07c379c..0ffa3153e 100644
--- a/tools/pd-simulator/simulator/task.go
+++ b/tools/pd-simulator/simulator/task.go
@@ -20,8 +20,8 @@ import (
 	"github.com/pingcap/kvproto/pkg/eraftpb"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tools/pd-analysis/analysis"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tools/pd-analysis/analysis"
 )
 
 // Task running in node.
diff --git a/tools/pd-tso-bench/README.md b/tools/pd-tso-bench/README.md
index c997a1c08..7b0322c9c 100644
--- a/tools/pd-tso-bench/README.md
+++ b/tools/pd-tso-bench/README.md
@@ -5,7 +5,7 @@ pd-tso-bench is a tool to benchmark GetTS performance.
 
 ## Build
 1. [Go](https://golang.org/) Version 1.9 or later
-2. In the root directory of the [PD project](https://github.com/pingcap/pd), use the `make` command to compile and generate `bin/pd-tso-bench`
+2. In the root directory of the [PD project](https://github.com/tikv/pd), use the `make` command to compile and generate `bin/pd-tso-bench`
 
 
 ## Usage
diff --git a/tools/pd-tso-bench/main.go b/tools/pd-tso-bench/main.go
index 2408d3715..bba68ec0b 100644
--- a/tools/pd-tso-bench/main.go
+++ b/tools/pd-tso-bench/main.go
@@ -24,8 +24,8 @@ import (
 	"time"
 
 	"github.com/pingcap/log"
-	pd "github.com/pingcap/pd/v3/client"
 	"github.com/pkg/errors"
+	pd "github.com/tikv/pd/client"
 	"go.uber.org/zap"
 )
 
diff --git a/tools/regions-dump/main.go b/tools/regions-dump/main.go
index f6670fc61..63435dce5 100644
--- a/tools/regions-dump/main.go
+++ b/tools/regions-dump/main.go
@@ -12,9 +12,9 @@ import (
 	"time"
 
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/server/core"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/server/core"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/pkg/transport"
 )


Test patch:
diff --git a/client/client_test.go b/client/client_test.go
index 2a3845cc0..57b3bebb8 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -20,7 +20,7 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/testutil"
+	"github.com/tikv/pd/pkg/testutil"
 	"go.uber.org/goleak"
 	"google.golang.org/grpc"
 )
diff --git a/pkg/etcdutil/etcdutil_test.go b/pkg/etcdutil/etcdutil_test.go
index 5f73ebe8a..6d7a6e202 100644
--- a/pkg/etcdutil/etcdutil_test.go
+++ b/pkg/etcdutil/etcdutil_test.go
@@ -23,7 +23,7 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/tempurl"
+	"github.com/tikv/pd/pkg/tempurl"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/embed"
 	"go.etcd.io/etcd/pkg/types"
diff --git a/pkg/logutil/log_test.go b/pkg/logutil/log_test.go
index 5fc9b4efc..205333c5b 100644
--- a/pkg/logutil/log_test.go
+++ b/pkg/logutil/log_test.go
@@ -86,7 +86,7 @@ func (s *testLogSuite) TestLogging(c *C) {
 
 	log.SetOutput(s.buf)
 
-	tlog := capnslog.NewPackageLogger("github.com/pingcap/pd/pkg/logutil", "test")
+	tlog := capnslog.NewPackageLogger("github.com/tikv/pd/pkg/logutil", "test")
 
 	tlog.Infof("[this message should not be sent to buf]")
 	c.Assert(s.buf.Len(), Equals, 0)
diff --git a/pkg/metricutil/metricutil_test.go b/pkg/metricutil/metricutil_test.go
index cce5f630d..590c5b6f3 100644
--- a/pkg/metricutil/metricutil_test.go
+++ b/pkg/metricutil/metricutil_test.go
@@ -18,7 +18,7 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
+	"github.com/tikv/pd/pkg/typeutil"
 )
 
 func Test(t *testing.T) {
diff --git a/pkg/slice/slice_test.go b/pkg/slice/slice_test.go
index bb0d46abb..ee6ebc09f 100644
--- a/pkg/slice/slice_test.go
+++ b/pkg/slice/slice_test.go
@@ -17,7 +17,7 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/slice"
+	"github.com/tikv/pd/pkg/slice"
 )
 
 func Test(t *testing.T) {
diff --git a/pkg/testutil/operator_check.go b/pkg/testutil/operator_check.go
index 5ee1ec977..e3ac88d03 100644
--- a/pkg/testutil/operator_check.go
+++ b/pkg/testutil/operator_check.go
@@ -15,7 +15,7 @@ package testutil
 
 import (
 	check "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 // CheckAddPeer checks if the operator is to add peer on specified store.
diff --git a/server/api/admin_test.go b/server/api/admin_test.go
index 233327ed7..5a84db692 100644
--- a/server/api/admin_test.go
+++ b/server/api/admin_test.go
@@ -22,8 +22,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testAdminSuite{})
diff --git a/server/api/cluster_test.go b/server/api/cluster_test.go
index c427126a4..9195964f7 100644
--- a/server/api/cluster_test.go
+++ b/server/api/cluster_test.go
@@ -19,9 +19,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
 )
 
 var _ = Suite(&testClusterSuite{})
diff --git a/server/api/config_test.go b/server/api/config_test.go
index 82bf4140b..648babdd0 100644
--- a/server/api/config_test.go
+++ b/server/api/config_test.go
@@ -19,8 +19,8 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 )
 
 var _ = Suite(&testConfigSuite{})
diff --git a/server/api/diagnose_test.go b/server/api/diagnose_test.go
index 9b8f5688c..6f528a109 100644
--- a/server/api/diagnose_test.go
+++ b/server/api/diagnose_test.go
@@ -18,7 +18,7 @@ import (
 	"io/ioutil"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 )
 
 var _ = Suite(&testDiagnoseAPISuite{})
diff --git a/server/api/health_test.go b/server/api/health_test.go
index 89af127e3..f5e8efb73 100644
--- a/server/api/health_test.go
+++ b/server/api/health_test.go
@@ -19,8 +19,8 @@ import (
 	"strings"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 )
 
 var _ = Suite(&testHealthAPISuite{})
diff --git a/server/api/hot_status_test.go b/server/api/hot_status_test.go
index 5a7f1423b..b17c020fc 100644
--- a/server/api/hot_status_test.go
+++ b/server/api/hot_status_test.go
@@ -17,8 +17,8 @@ import (
 	"fmt"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	"github.com/tikv/pd/server"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 var _ = Suite(&testHotStatusSuite{})
diff --git a/server/api/label_test.go b/server/api/label_test.go
index c0aa0d4d7..5450a0262 100644
--- a/server/api/label_test.go
+++ b/server/api/label_test.go
@@ -21,8 +21,8 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 )
 
 var _ = Suite(&testLabelsStoreSuite{})
diff --git a/server/api/member_test.go b/server/api/member_test.go
index 068ccbc44..fa9560a8e 100644
--- a/server/api/member_test.go
+++ b/server/api/member_test.go
@@ -22,8 +22,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 )
 
 var _ = Suite(&testMemberAPISuite{})
diff --git a/server/api/operator_test.go b/server/api/operator_test.go
index 7359197d3..873505e5c 100644
--- a/server/api/operator_test.go
+++ b/server/api/operator_test.go
@@ -23,10 +23,10 @@ import (
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testOperatorSuite{})
@@ -38,7 +38,7 @@ type testOperatorSuite struct {
 }
 
 func (s *testOperatorSuite) SetUpSuite(c *C) {
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/schedule/unexpectedOperator", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/schedule/unexpectedOperator", "return(true)"), IsNil)
 	s.svr, s.cleanup = mustNewServer(c, func(cfg *config.Config) { cfg.Replication.MaxReplicas = 1 })
 	mustWaitLeader(c, []*server.Server{s.svr})
 
diff --git a/server/api/region_test.go b/server/api/region_test.go
index 82f316bdb..cb12f535d 100644
--- a/server/api/region_test.go
+++ b/server/api/region_test.go
@@ -24,8 +24,8 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testRegionSuite{})
diff --git a/server/api/scheduler_test.go b/server/api/scheduler_test.go
index 9405de94a..d70012575 100644
--- a/server/api/scheduler_test.go
+++ b/server/api/scheduler_test.go
@@ -20,8 +20,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	"github.com/tikv/pd/server"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 var _ = Suite(&testScheduleSuite{})
diff --git a/server/api/server_test.go b/server/api/server_test.go
index 8c0728729..03cb1e36d 100644
--- a/server/api/server_test.go
+++ b/server/api/server_test.go
@@ -23,9 +23,9 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 	"go.uber.org/goleak"
 )
 
diff --git a/server/api/stats_test.go b/server/api/stats_test.go
index 89bb4c576..fc9613620 100644
--- a/server/api/stats_test.go
+++ b/server/api/stats_test.go
@@ -19,10 +19,10 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/apiutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/statistics"
 )
 
 var _ = Suite(&testStatsSuite{})
diff --git a/server/api/status_test.go b/server/api/status_test.go
index 45dbbba46..1076207a2 100644
--- a/server/api/status_test.go
+++ b/server/api/status_test.go
@@ -18,7 +18,7 @@ import (
 	"io/ioutil"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/server"
 )
 
 var _ = Suite(&testStatusAPISuite{})
diff --git a/server/api/store_test.go b/server/api/store_test.go
index caede622c..b642386c2 100644
--- a/server/api/store_test.go
+++ b/server/api/store_test.go
@@ -27,8 +27,8 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testStoreSuite{})
diff --git a/server/api/trend_test.go b/server/api/trend_test.go
index c9452d810..19a646f91 100644
--- a/server/api/trend_test.go
+++ b/server/api/trend_test.go
@@ -19,10 +19,10 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 var _ = Suite(&testTrendSuite{})
diff --git a/server/api/util_test.go b/server/api/util_test.go
index 46fa1c039..c44fb6788 100644
--- a/server/api/util_test.go
+++ b/server/api/util_test.go
@@ -19,7 +19,7 @@ import (
 	"net/http/httptest"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/apiutil"
+	"github.com/tikv/pd/pkg/apiutil"
 	"github.com/unrolled/render"
 )
 
diff --git a/server/api/version_test.go b/server/api/version_test.go
index dbe65fe9f..adbec0d40 100644
--- a/server/api/version_test.go
+++ b/server/api/version_test.go
@@ -23,9 +23,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/failpoint"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
 )
 
 var _ = Suite(&testVersionSuite{})
@@ -34,7 +34,7 @@ type testVersionSuite struct{}
 
 func (s *testVersionSuite) TestGetVersion(c *C) {
 	// TODO: enable it.
-	c.Skip("Temporary disable. See issue: https://github.com/pingcap/pd/issues/1893")
+	c.Skip("Temporary disable. See issue: https://github.com/tikv/pd/issues/1893")
 
 	fname := filepath.Join(os.TempDir(), "stdout")
 	old := os.Stdout
@@ -59,7 +59,7 @@ func (s *testVersionSuite) TestGetVersion(c *C) {
 	go func(cfg *config.Config) {
 		s, err := server.CreateServer(ctx, cfg, NewHandler)
 		c.Assert(err, IsNil)
-		c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/memberNil", `return(true)`), IsNil)
+		c.Assert(failpoint.Enable("github.com/tikv/pd/server/memberNil", `return(true)`), IsNil)
 		reqCh <- struct{}{}
 		err = s.Run()
 		c.Assert(err, IsNil)
@@ -80,5 +80,5 @@ func (s *testVersionSuite) TestGetVersion(c *C) {
 		cancel()
 		testutil.CleanServer(cfg.DataDir)
 	}()
-	c.Assert(failpoint.Disable("github.com/pingcap/pd/v3/server/memberNil"), IsNil)
+	c.Assert(failpoint.Disable("github.com/tikv/pd/server/memberNil"), IsNil)
 }
diff --git a/server/cluster/cluster_test.go b/server/cluster/cluster_test.go
index 007b948c5..57aebe226 100644
--- a/server/cluster/cluster_test.go
+++ b/server/cluster/cluster_test.go
@@ -24,12 +24,12 @@ import (
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockid"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/id"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/pkg/mock/mockid"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/id"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 func Test(t *testing.T) {
@@ -332,13 +332,13 @@ func (s *testClusterInfoSuite) TestConcurrentRegionHeartbeat(c *C) {
 
 	var wg sync.WaitGroup
 	wg.Add(1)
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/server/cluster/concurrentRegionHeartbeat", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/cluster/concurrentRegionHeartbeat", "return(true)"), IsNil)
 	go func() {
 		defer wg.Done()
 		cluster.processRegionHeartbeat(source)
 	}()
 	time.Sleep(100 * time.Millisecond)
-	c.Assert(failpoint.Disable("github.com/pingcap/pd/server/cluster/concurrentRegionHeartbeat"), IsNil)
+	c.Assert(failpoint.Disable("github.com/tikv/pd/server/cluster/concurrentRegionHeartbeat"), IsNil)
 	c.Assert(cluster.processRegionHeartbeat(target), IsNil)
 	wg.Wait()
 	checkRegion(c, cluster.GetRegionInfoByKey([]byte{}), target)
diff --git a/server/cluster/cluster_worker_test.go b/server/cluster/cluster_worker_test.go
index 9c5f4921c..acbcf9061 100644
--- a/server/cluster/cluster_worker_test.go
+++ b/server/cluster/cluster_worker_test.go
@@ -19,7 +19,7 @@ import (
 	"github.com/pingcap/kvproto/pkg/pdpb"
 
 	// Register schedulers
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 var _ = Suite(&testClusterWorkerSuite{})
diff --git a/server/cluster/coordinator_test.go b/server/cluster/coordinator_test.go
index 1029afd87..03322515a 100644
--- a/server/cluster/coordinator_test.go
+++ b/server/cluster/coordinator_test.go
@@ -25,17 +25,17 @@ import (
 	"github.com/pingcap/kvproto/pkg/eraftpb"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockhbstream"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
-	"github.com/pingcap/pd/v3/server/schedulers"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/mock/mockhbstream"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/storelimit"
+	"github.com/tikv/pd/server/schedulers"
+	"github.com/tikv/pd/server/statistics"
 )
 
 func newTestOperator(regionID uint64, regionEpoch *metapb.RegionEpoch, kind operator.OpKind, steps ...operator.OpStep) *operator.Operator {
@@ -147,7 +147,7 @@ type testCoordinatorSuite struct {
 
 func (s *testCoordinatorSuite) SetUpSuite(c *C) {
 	s.ctx, s.cancel = context.WithCancel(context.Background())
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/schedule/unexpectedOperator", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/schedule/unexpectedOperator", "return(true)"), IsNil)
 }
 
 func (s *testCoordinatorSuite) TearDownSuite(c *C) {
@@ -864,7 +864,7 @@ type testOperatorControllerSuite struct {
 
 func (s *testOperatorControllerSuite) SetUpSuite(c *C) {
 	s.ctx, s.cancel = context.WithCancel(context.Background())
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/schedule/unexpectedOperator", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/schedule/unexpectedOperator", "return(true)"), IsNil)
 }
 
 func (s *testOperatorControllerSuite) TearDownSuite(c *C) {
@@ -991,7 +991,7 @@ type testScheduleControllerSuite struct {
 
 func (s *testScheduleControllerSuite) SetUpSuite(c *C) {
 	s.ctx, s.cancel = context.WithCancel(context.Background())
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/schedule/unexpectedOperator", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/schedule/unexpectedOperator", "return(true)"), IsNil)
 }
 
 func (s *testScheduleControllerSuite) TearDownSuite(c *C) {
diff --git a/server/cluster/store_limiter_test.go b/server/cluster/store_limiter_test.go
index d8087ea53..c1aedad89 100644
--- a/server/cluster/store_limiter_test.go
+++ b/server/cluster/store_limiter_test.go
@@ -18,10 +18,10 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/storelimit"
 )
 
 var _ = Suite(&testStoreLimiterSuite{})
diff --git a/server/config/config_test.go b/server/config/config_test.go
index 0d76dfa15..0ea9fe794 100644
--- a/server/config/config_test.go
+++ b/server/config/config_test.go
@@ -24,11 +24,11 @@ import (
 
 	"github.com/BurntSushi/toml"
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
 
 	// Register schedulers.
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 func Test(t *testing.T) {
diff --git a/server/config_manager/config_manager_test.go b/server/config_manager/config_manager_test.go
index 09e0b4af8..3ebbeba36 100644
--- a/server/config_manager/config_manager_test.go
+++ b/server/config_manager/config_manager_test.go
@@ -19,8 +19,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/configpb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
 )
 
 func Test(t *testing.T) {
diff --git a/server/core/region_test.go b/server/core/region_test.go
index 35be12711..f5747a2f0 100644
--- a/server/core/region_test.go
+++ b/server/core/region_test.go
@@ -22,8 +22,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockid"
-	"github.com/pingcap/pd/v3/server/id"
+	"github.com/tikv/pd/pkg/mock/mockid"
+	"github.com/tikv/pd/server/id"
 )
 
 func TestCore(t *testing.T) {
diff --git a/server/core/storage_test.go b/server/core/storage_test.go
index 7ff130ccb..fa784a266 100644
--- a/server/core/storage_test.go
+++ b/server/core/storage_test.go
@@ -19,8 +19,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/kv"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/server/kv"
 )
 
 var _ = Suite(&testKVSuite{})
diff --git a/server/heartbeat_stream_test.go b/server/heartbeat_stream_test.go
index bd8990b33..5d43134b0 100644
--- a/server/heartbeat_stream_test.go
+++ b/server/heartbeat_stream_test.go
@@ -21,9 +21,9 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/core"
 	"go.uber.org/zap"
 )
 
diff --git a/server/join/join_test.go b/server/join/join_test.go
index ffd725420..f71e4e202 100644
--- a/server/join/join_test.go
+++ b/server/join/join_test.go
@@ -17,8 +17,8 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
 )
 
 func TestJoin(t *testing.T) {
diff --git a/server/kv/etcd_kv_test.go b/server/kv/etcd_kv_test.go
index cc920a3ff..c01680aa7 100644
--- a/server/kv/etcd_kv_test.go
+++ b/server/kv/etcd_kv_test.go
@@ -23,7 +23,7 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/tempurl"
+	"github.com/tikv/pd/pkg/tempurl"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/embed"
 )
diff --git a/server/region_syncer/history_buffer_test.go b/server/region_syncer/history_buffer_test.go
index 7875c36f9..d17f7af31 100644
--- a/server/region_syncer/history_buffer_test.go
+++ b/server/region_syncer/history_buffer_test.go
@@ -18,8 +18,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
 )
 
 var _ = Suite(&testHistoryBuffer{})
diff --git a/server/schedule/checker/merge_checker_test.go b/server/schedule/checker/merge_checker_test.go
index f903504ea..31e3f33bf 100644
--- a/server/schedule/checker/merge_checker_test.go
+++ b/server/schedule/checker/merge_checker_test.go
@@ -21,13 +21,13 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
 	"go.uber.org/goleak"
 )
 
diff --git a/server/schedule/checker/replica_checker_test.go b/server/schedule/checker/replica_checker_test.go
index 7526cc01f..e0d14e0db 100644
--- a/server/schedule/checker/replica_checker_test.go
+++ b/server/schedule/checker/replica_checker_test.go
@@ -19,11 +19,11 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 var _ = Suite(&testReplicaCheckerSuite{})
diff --git a/server/schedule/checker/rule_checker_test.go b/server/schedule/checker/rule_checker_test.go
index 4626a0173..b886c0c30 100644
--- a/server/schedule/checker/rule_checker_test.go
+++ b/server/schedule/checker/rule_checker_test.go
@@ -19,11 +19,11 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/placement"
 )
 
 var _ = Suite(&testRuleCheckerSuite{})
diff --git a/server/schedule/filter/filters_test.go b/server/schedule/filter/filters_test.go
index b4ce8fe79..62ee351e9 100644
--- a/server/schedule/filter/filters_test.go
+++ b/server/schedule/filter/filters_test.go
@@ -17,10 +17,10 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/placement"
 )
 
 func Test(t *testing.T) {
diff --git a/server/schedule/operator/builder_test.go b/server/schedule/operator/builder_test.go
index 685f05b9c..df02bc2a7 100644
--- a/server/schedule/operator/builder_test.go
+++ b/server/schedule/operator/builder_test.go
@@ -16,10 +16,10 @@ package operator
 import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
 )
 
 var _ = Suite(&testBuilderSuite{})
diff --git a/server/schedule/operator/operator_test.go b/server/schedule/operator/operator_test.go
index 9b994dc10..d491ff5c6 100644
--- a/server/schedule/operator/operator_test.go
+++ b/server/schedule/operator/operator_test.go
@@ -21,11 +21,11 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/storelimit"
 )
 
 func Test(t *testing.T) {
diff --git a/server/schedule/operator_controller_test.go b/server/schedule/operator_controller_test.go
index ecae2e061..dfecbba52 100644
--- a/server/schedule/operator_controller_test.go
+++ b/server/schedule/operator_controller_test.go
@@ -25,13 +25,13 @@ import (
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockhbstream"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/checker"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockhbstream"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/checker"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/storelimit"
 )
 
 func Test(t *testing.T) {
@@ -47,7 +47,7 @@ type testOperatorControllerSuite struct {
 
 func (t *testOperatorControllerSuite) SetUpSuite(c *C) {
 	t.ctx, t.cancel = context.WithCancel(context.Background())
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/schedule/unexpectedOperator", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/schedule/unexpectedOperator", "return(true)"), IsNil)
 }
 
 func (t *testOperatorControllerSuite) TearDownSuite(c *C) {
@@ -131,7 +131,7 @@ func (t *testOperatorControllerSuite) TestOperatorStatus(c *C) {
 }
 
 func (t *testOperatorControllerSuite) TestCheckAddUnexpectedStatus(c *C) {
-	c.Assert(failpoint.Disable("github.com/pingcap/pd/v3/server/schedule/unexpectedOperator"), IsNil)
+	c.Assert(failpoint.Disable("github.com/tikv/pd/server/schedule/unexpectedOperator"), IsNil)
 	opt := mockoption.NewScheduleOptions()
 	tc := mockcluster.NewCluster(opt)
 	oc := NewOperatorController(t.ctx, tc, mockhbstream.NewHeartbeatStream())
@@ -214,7 +214,7 @@ func (t *testOperatorControllerSuite) TestConcurrentRemoveOperator(c *C) {
 	c.Assert(op1.Start(), IsTrue)
 	oc.SetOperator(op1)
 
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/schedule/concurrentRemoveOperator", "return(true)"), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/schedule/concurrentRemoveOperator", "return(true)"), IsNil)
 
 	var wg sync.WaitGroup
 	wg.Add(2)
diff --git a/server/schedule/opt/healthy_test.go b/server/schedule/opt/healthy_test.go
index 17de5f68f..cf3d32fd0 100644
--- a/server/schedule/opt/healthy_test.go
+++ b/server/schedule/opt/healthy_test.go
@@ -19,9 +19,9 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
 )
 
 func TestOpt(t *testing.T) {
diff --git a/server/schedule/placement/fit_test.go b/server/schedule/placement/fit_test.go
index 94ae9613b..cdfb537c7 100644
--- a/server/schedule/placement/fit_test.go
+++ b/server/schedule/placement/fit_test.go
@@ -20,7 +20,7 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testFitSuite{})
diff --git a/server/schedule/placement/label_constraint_test.go b/server/schedule/placement/label_constraint_test.go
index a4ed618d0..134273ee7 100644
--- a/server/schedule/placement/label_constraint_test.go
+++ b/server/schedule/placement/label_constraint_test.go
@@ -17,7 +17,7 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 func TestPlacement(t *testing.T) {
diff --git a/server/schedule/placement/rule_manager_test.go b/server/schedule/placement/rule_manager_test.go
index d2901c57e..271dda27e 100644
--- a/server/schedule/placement/rule_manager_test.go
+++ b/server/schedule/placement/rule_manager_test.go
@@ -18,8 +18,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
 )
 
 var _ = Suite(&testManagerSuite{})
diff --git a/server/schedule/selector/selector_test.go b/server/schedule/selector/selector_test.go
index 9078ed12e..c48874af8 100644
--- a/server/schedule/selector/selector_test.go
+++ b/server/schedule/selector/selector_test.go
@@ -17,10 +17,10 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/filter"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/filter"
 )
 
 func Test(t *testing.T) {
diff --git a/server/schedule/test_util.go b/server/schedule/test_util.go
index 3a81152e0..54b563a80 100644
--- a/server/schedule/test_util.go
+++ b/server/schedule/test_util.go
@@ -15,9 +15,9 @@ package schedule
 
 import (
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 // ApplyOperatorStep applies operator step. Only for test purpose.
diff --git a/server/schedule/waiting_operator_test.go b/server/schedule/waiting_operator_test.go
index 62e1350b7..2e12f32eb 100644
--- a/server/schedule/waiting_operator_test.go
+++ b/server/schedule/waiting_operator_test.go
@@ -16,8 +16,8 @@ package schedule
 import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 var _ = Suite(&testWaitingOperatorSuite{})
diff --git a/server/schedulers/balance_test.go b/server/schedulers/balance_test.go
index b7f1df9e3..1f0ae5cea 100644
--- a/server/schedulers/balance_test.go
+++ b/server/schedulers/balance_test.go
@@ -22,15 +22,15 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockhbstream"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/checker"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockhbstream"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/checker"
+	"github.com/tikv/pd/server/schedule/operator"
 )
 
 func newTestReplication(mso *mockoption.ScheduleOptions, maxReplicas int, locationLabels ...string) {
diff --git a/server/schedulers/hot_test.go b/server/schedulers/hot_test.go
index ad46bd862..73d3779ea 100644
--- a/server/schedulers/hot_test.go
+++ b/server/schedulers/hot_test.go
@@ -19,14 +19,14 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/statistics"
 )
 
 func init() {
diff --git a/server/schedulers/scheduler_test.go b/server/schedulers/scheduler_test.go
index 50c1ccb1a..4ed0c8ab9 100644
--- a/server/schedulers/scheduler_test.go
+++ b/server/schedulers/scheduler_test.go
@@ -18,17 +18,17 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockcluster"
-	"github.com/pingcap/pd/v3/pkg/mock/mockhbstream"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	"github.com/pingcap/pd/v3/server/schedule"
-	"github.com/pingcap/pd/v3/server/schedule/operator"
-	"github.com/pingcap/pd/v3/server/schedule/opt"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/server/statistics"
+	"github.com/tikv/pd/pkg/mock/mockcluster"
+	"github.com/tikv/pd/pkg/mock/mockhbstream"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	"github.com/tikv/pd/server/schedule"
+	"github.com/tikv/pd/server/schedule/operator"
+	"github.com/tikv/pd/server/schedule/opt"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/server/statistics"
 )
 
 var _ = Suite(&testShuffleLeaderSuite{})
diff --git a/server/server_test.go b/server/server_test.go
index 359c2ece6..16163a489 100644
--- a/server/server_test.go
+++ b/server/server_test.go
@@ -21,9 +21,9 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server/config"
 	"go.etcd.io/etcd/embed"
 	"go.etcd.io/etcd/pkg/types"
 	"go.uber.org/goleak"
diff --git a/server/statistics/hot_peer_cache_test.go b/server/statistics/hot_peer_cache_test.go
index baebfb5e5..64e066302 100644
--- a/server/statistics/hot_peer_cache_test.go
+++ b/server/statistics/hot_peer_cache_test.go
@@ -18,7 +18,7 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testHotPeerCache{})
diff --git a/server/statistics/region_collection_test.go b/server/statistics/region_collection_test.go
index f53a2e12e..3c682691f 100644
--- a/server/statistics/region_collection_test.go
+++ b/server/statistics/region_collection_test.go
@@ -17,8 +17,8 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testRegionStatisticsSuite{})
diff --git a/server/statistics/store_collection_test.go b/server/statistics/store_collection_test.go
index 909aee26e..6f7fcfd6e 100644
--- a/server/statistics/store_collection_test.go
+++ b/server/statistics/store_collection_test.go
@@ -18,8 +18,8 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockoption"
-	"github.com/pingcap/pd/v3/server/core"
+	"github.com/tikv/pd/pkg/mock/mockoption"
+	"github.com/tikv/pd/server/core"
 )
 
 var _ = Suite(&testStoreStatisticsSuite{})
diff --git a/server/testutil.go b/server/testutil.go
index 16e60b36a..eab069048 100644
--- a/server/testutil.go
+++ b/server/testutil.go
@@ -23,14 +23,14 @@ import (
 
 	"github.com/pingcap/check"
 	"github.com/pingcap/log"
-	"github.com/pingcap/pd/v3/pkg/tempurl"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/tempurl"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server/config"
 	"go.etcd.io/etcd/embed"
 
 	// Register schedulers
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 // CleanupFunc closes test pd server(s) and deletes any files left behind.
diff --git a/tests/client/client_test.go b/tests/client/client_test.go
index 68b31ae7f..0f042ed9e 100644
--- a/tests/client/client_test.go
+++ b/tests/client/client_test.go
@@ -27,12 +27,12 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	pd "github.com/pingcap/pd/v3/client"
-	"github.com/pingcap/pd/v3/pkg/mock/mockid"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tests"
+	pd "github.com/tikv/pd/client"
+	"github.com/tikv/pd/pkg/mock/mockid"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tests"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/goleak"
 )
diff --git a/tests/client/client_tsl_test.go b/tests/client/client_tsl_test.go
index e0b910f94..81336dfbb 100644
--- a/tests/client/client_tsl_test.go
+++ b/tests/client/client_tsl_test.go
@@ -23,11 +23,11 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	pd "github.com/pingcap/pd/v3/client"
-	"github.com/pingcap/pd/v3/pkg/grpcutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/tests"
+	pd "github.com/tikv/pd/client"
+	"github.com/tikv/pd/pkg/grpcutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/tests"
 	"go.etcd.io/etcd/pkg/transport"
 	"google.golang.org/grpc"
 )
diff --git a/tests/cluster.go b/tests/cluster.go
index fae709908..9648aa336 100644
--- a/tests/cluster.go
+++ b/tests/cluster.go
@@ -24,16 +24,16 @@ import (
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
 	"github.com/pingcap/log"
-	dashboardapi "github.com/pingcap/pd/v3/pkg/dashboard/apiserver"
-	dashboardui "github.com/pingcap/pd/v3/pkg/dashboard/uiserver"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/id"
-	"github.com/pingcap/pd/v3/server/join"
 	"github.com/pkg/errors"
+	dashboardapi "github.com/tikv/pd/pkg/dashboard/apiserver"
+	dashboardui "github.com/tikv/pd/pkg/dashboard/uiserver"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/id"
+	"github.com/tikv/pd/server/join"
 	"go.etcd.io/etcd/clientv3"
 	"go.uber.org/zap"
 )
diff --git a/tests/compatibility/version_upgrade_test.go b/tests/compatibility/version_upgrade_test.go
index 6efd27aec..8fb7484fa 100644
--- a/tests/compatibility/version_upgrade_test.go
+++ b/tests/compatibility/version_upgrade_test.go
@@ -21,8 +21,8 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/config.go b/tests/config.go
index 473c4cd15..ce40bfb38 100644
--- a/tests/config.go
+++ b/tests/config.go
@@ -18,8 +18,8 @@ import (
 	"io/ioutil"
 	"strings"
 
-	"github.com/pingcap/pd/v3/pkg/tempurl"
-	"github.com/pingcap/pd/v3/server/config"
+	"github.com/tikv/pd/pkg/tempurl"
+	"github.com/tikv/pd/server/config"
 )
 
 type serverConfig struct {
diff --git a/tests/dashboard/service_test.go b/tests/dashboard/service_test.go
index b3a2a01d2..845384b78 100644
--- a/tests/dashboard/service_test.go
+++ b/tests/dashboard/service_test.go
@@ -21,14 +21,14 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 
 	// Register schedulers.
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdbackup/backup_test.go b/tests/pdbackup/backup_test.go
index 26b206e9f..c91975650 100644
--- a/tests/pdbackup/backup_test.go
+++ b/tests/pdbackup/backup_test.go
@@ -22,9 +22,9 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tools/pd-backup/pdbackup"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tools/pd-backup/pdbackup"
 	"go.etcd.io/etcd/clientv3"
 )
 
diff --git a/tests/pdctl/cluster/cluster_test.go b/tests/pdctl/cluster/cluster_test.go
index e210803f7..92bd8a049 100644
--- a/tests/pdctl/cluster/cluster_test.go
+++ b/tests/pdctl/cluster/cluster_test.go
@@ -21,9 +21,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/config/config_test.go b/tests/pdctl/config/config_test.go
index c183da0bd..5d7ff74a6 100644
--- a/tests/pdctl/config/config_test.go
+++ b/tests/pdctl/config/config_test.go
@@ -25,11 +25,11 @@ import (
 	"github.com/coreos/go-semver/semver"
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/schedule/placement"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/schedule/placement"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/health/health_test.go b/tests/pdctl/health/health_test.go
index a5afa7de3..c9202390e 100644
--- a/tests/pdctl/health/health_test.go
+++ b/tests/pdctl/health/health_test.go
@@ -19,11 +19,11 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/helper.go b/tests/pdctl/helper.go
index 216ff651c..45cc6a142 100644
--- a/tests/pdctl/helper.go
+++ b/tests/pdctl/helper.go
@@ -25,15 +25,15 @@ import (
 	"github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tools/pd-ctl/pdctl"
-	ctl "github.com/pingcap/pd/v3/tools/pd-ctl/pdctl"
-	"github.com/pingcap/pd/v3/tools/pd-ctl/pdctl/command"
 	"github.com/spf13/cobra"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tools/pd-ctl/pdctl"
+	ctl "github.com/tikv/pd/tools/pd-ctl/pdctl"
+	"github.com/tikv/pd/tools/pd-ctl/pdctl/command"
 )
 
 // InitCommand is used to initialize command.
diff --git a/tests/pdctl/hot/hot_test.go b/tests/pdctl/hot/hot_test.go
index 35b368192..6c1e0a3da 100644
--- a/tests/pdctl/hot/hot_test.go
+++ b/tests/pdctl/hot/hot_test.go
@@ -23,12 +23,12 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/statistics"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/statistics"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/label/label_test.go b/tests/pdctl/label/label_test.go
index f4d71d8ac..f37d6af4b 100644
--- a/tests/pdctl/label/label_test.go
+++ b/tests/pdctl/label/label_test.go
@@ -21,11 +21,11 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/log/log_test.go b/tests/pdctl/log/log_test.go
index dd291f4f0..1a57476a2 100644
--- a/tests/pdctl/log/log_test.go
+++ b/tests/pdctl/log/log_test.go
@@ -19,9 +19,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/member/member_test.go b/tests/pdctl/member/member_test.go
index eeeed4cca..79955ea3d 100644
--- a/tests/pdctl/member/member_test.go
+++ b/tests/pdctl/member/member_test.go
@@ -21,11 +21,11 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/operator/operator_test.go b/tests/pdctl/operator/operator_test.go
index 91ca6f649..932c0b53b 100644
--- a/tests/pdctl/operator/operator_test.go
+++ b/tests/pdctl/operator/operator_test.go
@@ -21,11 +21,11 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/region/region_test.go b/tests/pdctl/region/region_test.go
index 4868f2e66..db44ff7a6 100644
--- a/tests/pdctl/region/region_test.go
+++ b/tests/pdctl/region/region_test.go
@@ -22,11 +22,11 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/scheduler/scheduler_test.go b/tests/pdctl/scheduler/scheduler_test.go
index eb3822901..e7c5fda4f 100644
--- a/tests/pdctl/scheduler/scheduler_test.go
+++ b/tests/pdctl/scheduler/scheduler_test.go
@@ -22,9 +22,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/store/store_test.go b/tests/pdctl/store/store_test.go
index 2a1d8e397..52bfaba6b 100644
--- a/tests/pdctl/store/store_test.go
+++ b/tests/pdctl/store/store_test.go
@@ -21,11 +21,11 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/api"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
-	"github.com/pingcap/pd/v3/tests"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/api"
+	"github.com/tikv/pd/server/schedule/storelimit"
+	"github.com/tikv/pd/tests"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/pdctl/tso/tso_test.go b/tests/pdctl/tso/tso_test.go
index 3e76dc45e..379d64400 100644
--- a/tests/pdctl/tso/tso_test.go
+++ b/tests/pdctl/tso/tso_test.go
@@ -20,8 +20,8 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests/pdctl"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests/pdctl"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/server/api/api_test.go b/tests/server/api/api_test.go
index 2e7e9e3ef..8fe18463f 100644
--- a/tests/server/api/api_test.go
+++ b/tests/server/api/api_test.go
@@ -21,12 +21,12 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/apiutil/serverapi"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/pkg/typeutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/apiutil/serverapi"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/pkg/typeutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
diff --git a/tests/server/cluster/cluster_test.go b/tests/server/cluster/cluster_test.go
index 59211d7f4..c599cabe5 100644
--- a/tests/server/cluster/cluster_test.go
+++ b/tests/server/cluster/cluster_test.go
@@ -25,17 +25,17 @@ import (
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockid"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/cluster"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/server/kv"
-	syncer "github.com/pingcap/pd/v3/server/region_syncer"
-	"github.com/pingcap/pd/v3/server/schedule/storelimit"
-	"github.com/pingcap/pd/v3/tests"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/mock/mockid"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/cluster"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/server/kv"
+	syncer "github.com/tikv/pd/server/region_syncer"
+	"github.com/tikv/pd/server/schedule/storelimit"
+	"github.com/tikv/pd/tests"
 )
 
 func Test(t *testing.T) {
@@ -351,7 +351,7 @@ func (s *clusterTestSuite) TestRaftClusterMultipleRestart(c *C) {
 	c.Assert(tc, NotNil)
 
 	// let the job run at small interval
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/highFrequencyClusterJobs", `return(true)`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/highFrequencyClusterJobs", `return(true)`), IsNil)
 	for i := 0; i < 100; i++ {
 		err = rc.Start(leaderServer.GetServer())
 		c.Assert(err, IsNil)
@@ -407,7 +407,7 @@ func (s *clusterTestSuite) TestStoreVersionChange(c *C) {
 	c.Assert(err, IsNil)
 	store := newMetaStore(storeID, "127.0.0.1:4", "2.1.0", metapb.StoreState_Up)
 	var wg sync.WaitGroup
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/versionChangeConcurrency", `return(true)`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/versionChangeConcurrency", `return(true)`), IsNil)
 	wg.Add(1)
 	go func() {
 		defer wg.Done()
@@ -420,7 +420,7 @@ func (s *clusterTestSuite) TestStoreVersionChange(c *C) {
 	v, err := semver.NewVersion("1.0.0")
 	c.Assert(err, IsNil)
 	c.Assert(svr.GetClusterVersion(), Equals, *v)
-	c.Assert(failpoint.Disable("github.com/pingcap/pd/v3/server/versionChangeConcurrency"), IsNil)
+	c.Assert(failpoint.Disable("github.com/tikv/pd/server/versionChangeConcurrency"), IsNil)
 }
 
 func (s *clusterTestSuite) TestConcurrentHandleRegion(c *C) {
diff --git a/tests/server/cluster/cluster_work_test.go b/tests/server/cluster/cluster_work_test.go
index cde85b0e0..8e4f32f7d 100644
--- a/tests/server/cluster/cluster_work_test.go
+++ b/tests/server/cluster/cluster_work_test.go
@@ -20,10 +20,10 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tests"
 )
 
 var _ = Suite(&clusterWorkerTestSuite{})
diff --git a/tests/server/id/id_test.go b/tests/server/id/id_test.go
index 0787137b4..8419f26b6 100644
--- a/tests/server/id/id_test.go
+++ b/tests/server/id/id_test.go
@@ -20,9 +20,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
diff --git a/tests/server/join/join_fail/join_fail_test.go b/tests/server/join/join_fail/join_fail_test.go
index 71f99f4d7..a765954bf 100644
--- a/tests/server/join/join_fail/join_fail_test.go
+++ b/tests/server/join/join_fail/join_fail_test.go
@@ -20,9 +20,9 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/failpoint"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
@@ -54,9 +54,9 @@ func (s *joinTestSuite) TestFailedPDJoinInStep1(c *C) {
 	cluster.WaitLeader()
 
 	// Join the second PD.
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/join/add-member-failed", `return`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/join/add-member-failed", `return`), IsNil)
 	_, err = cluster.Join(ctx)
 	c.Assert(err, NotNil)
 	c.Assert(strings.Contains(err.Error(), "join failed"), IsTrue)
-	c.Assert(failpoint.Disable("github.com/pingcap/pd/v3/server/join/add-member-failed"), IsNil)
+	c.Assert(failpoint.Disable("github.com/tikv/pd/server/join/add-member-failed"), IsNil)
 }
diff --git a/tests/server/join/join_test.go b/tests/server/join/join_test.go
index cf533a511..4464b948f 100644
--- a/tests/server/join/join_test.go
+++ b/tests/server/join/join_test.go
@@ -21,10 +21,10 @@ import (
 	"time"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/etcdutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/join"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/etcdutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/join"
+	"github.com/tikv/pd/tests"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/server/member/member_test.go b/tests/server/member/member_test.go
index b58a3f266..817cad9d9 100644
--- a/tests/server/member/member_test.go
+++ b/tests/server/member/member_test.go
@@ -26,11 +26,11 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/tests"
 	"github.com/pkg/errors"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
diff --git a/tests/server/region_syncer/region_syncer_test.go b/tests/server/region_syncer/region_syncer_test.go
index 07bf709de..28b6dcd24 100644
--- a/tests/server/region_syncer/region_syncer_test.go
+++ b/tests/server/region_syncer/region_syncer_test.go
@@ -20,12 +20,12 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/kvproto/pkg/metapb"
-	"github.com/pingcap/pd/v3/pkg/mock/mockid"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/server/core"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/mock/mockid"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/server/core"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
diff --git a/tests/server/server_test.go b/tests/server/server_test.go
index fc002697c..c8dc8d949 100644
--- a/tests/server/server_test.go
+++ b/tests/server/server_test.go
@@ -18,14 +18,14 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/tempurl"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/tempurl"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 
 	// Register schedulers.
-	_ "github.com/pingcap/pd/v3/server/schedulers"
+	_ "github.com/tikv/pd/server/schedulers"
 )
 
 func Test(t *testing.T) {
diff --git a/tests/server/tso/tso_test.go b/tests/server/tso/tso_test.go
index 938d39ec6..4c790c5e2 100644
--- a/tests/server/tso/tso_test.go
+++ b/tests/server/tso/tso_test.go
@@ -23,9 +23,9 @@ import (
 	. "github.com/pingcap/check"
 	"github.com/pingcap/failpoint"
 	"github.com/pingcap/kvproto/pkg/pdpb"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
@@ -182,8 +182,8 @@ type testTimeFallBackSuite struct {
 
 func (s *testTimeFallBackSuite) SetUpSuite(c *C) {
 	s.ctx, s.cancel = context.WithCancel(context.Background())
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/tso/fallBackSync", `return(true)`), IsNil)
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/tso/fallBackUpdate", `return(true)`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/tso/fallBackSync", `return(true)`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/tso/fallBackUpdate", `return(true)`), IsNil)
 	var err error
 	s.cluster, err = tests.NewTestCluster(s.ctx, 1)
 	c.Assert(err, IsNil)
@@ -196,8 +196,8 @@ func (s *testTimeFallBackSuite) SetUpSuite(c *C) {
 	s.grpcPDClient = testutil.MustNewGrpcClient(c, s.server.GetAddr())
 	svr := s.server.GetServer()
 	svr.Close()
-	failpoint.Disable("github.com/pingcap/pd/v3/server/tso/fallBackSync")
-	failpoint.Disable("github.com/pingcap/pd/v3/server/tso/fallBackUpdate")
+	failpoint.Disable("github.com/tikv/pd/server/tso/fallBackSync")
+	failpoint.Disable("github.com/tikv/pd/server/tso/fallBackUpdate")
 	err = svr.Run()
 	c.Assert(err, IsNil)
 	s.cluster.WaitLeader()
@@ -277,7 +277,7 @@ func (s *testFollowerTsoSuite) TearDownSuite(c *C) {
 }
 
 func (s *testFollowerTsoSuite) TestRequest(c *C) {
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/tso/skipRetryGetTS", `return(true)`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/tso/skipRetryGetTS", `return(true)`), IsNil)
 	var err error
 	cluster, err := tests.NewTestCluster(s.ctx, 2)
 	defer cluster.Destroy()
@@ -309,5 +309,5 @@ func (s *testFollowerTsoSuite) TestRequest(c *C) {
 	_, err = tsoClient.Recv()
 	c.Assert(err, NotNil)
 	c.Assert(strings.Contains(err.Error(), "can not get timestamp"), IsTrue)
-	failpoint.Disable("github.com/pingcap/pd/v3/server/tso/skipRetryGetTS")
+	failpoint.Disable("github.com/tikv/pd/server/tso/skipRetryGetTS")
 }
diff --git a/tests/server/watch/leader_watch_test.go b/tests/server/watch/leader_watch_test.go
index bd611df15..87d8ad015 100644
--- a/tests/server/watch/leader_watch_test.go
+++ b/tests/server/watch/leader_watch_test.go
@@ -20,10 +20,10 @@ import (
 
 	. "github.com/pingcap/check"
 	"github.com/pingcap/failpoint"
-	"github.com/pingcap/pd/v3/pkg/testutil"
-	"github.com/pingcap/pd/v3/server"
-	"github.com/pingcap/pd/v3/server/config"
-	"github.com/pingcap/pd/v3/tests"
+	"github.com/tikv/pd/pkg/testutil"
+	"github.com/tikv/pd/server"
+	"github.com/tikv/pd/server/config"
+	"github.com/tikv/pd/tests"
 	"go.uber.org/goleak"
 )
 
@@ -71,7 +71,7 @@ func (s *serverTestSuite) TestWatcher(c *C) {
 	time.Sleep(5 * time.Second)
 	pd3, err := cluster.Join(s.ctx)
 	c.Assert(err, IsNil)
-	c.Assert(failpoint.Enable("github.com/pingcap/pd/v3/server/delayWatcher", `pause`), IsNil)
+	c.Assert(failpoint.Enable("github.com/tikv/pd/server/delayWatcher", `pause`), IsNil)
 	err = pd3.Run()
 	c.Assert(err, IsNil)
 	time.Sleep(200 * time.Millisecond)
@@ -80,7 +80,7 @@ func (s *serverTestSuite) TestWatcher(c *C) {
 	c.Assert(err, IsNil)
 	cluster.WaitLeader()
 	c.Assert(pd2.GetLeader().GetName(), Equals, pd2.GetConfig().Name)
-	failpoint.Disable("github.com/pingcap/pd/v3/server/delayWatcher")
+	failpoint.Disable("github.com/tikv/pd/server/delayWatcher")
 	testutil.WaitUntil(c, func(c *C) bool {
 		return c.Check(pd3.GetLeader().GetName(), Equals, pd2.GetConfig().Name)
 	})
diff --git a/tools/pd-simulator/simulator/simutil/key_test.go b/tools/pd-simulator/simulator/simutil/key_test.go
index 28712379f..ceb02f6ee 100644
--- a/tools/pd-simulator/simulator/simutil/key_test.go
+++ b/tools/pd-simulator/simulator/simutil/key_test.go
@@ -17,7 +17,7 @@ import (
 	"testing"
 
 	. "github.com/pingcap/check"
-	"github.com/pingcap/pd/v3/pkg/codec"
+	"github.com/tikv/pd/pkg/codec"
 )
 
 func Test(t *testing.T) {