-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture list increased 1 unexpected after all PD restarting #2388
Labels
area/ticdc
Issues or PRs related to TiCDC.
bug-from-internal-test
Bugs found by internal testing.
component/status-server
Status server component.
difficulty/easy
Easy task.
severity/minor
type/bug
The issue is confirmed as a bug.
Comments
asddongmen
added
bug-from-internal-test
Bugs found by internal testing.
component/status-server
Status server component.
difficulty/easy
Easy task.
labels
Jul 28, 2021
|
|
when all PD restart, CDC also cannot get touch with Etcd, so 5s timeout is too small, maybe set to a larger timeout for a workaround. |
when CDC server cannot get in touch with PD, they will meet PD related error, then failed to run, then get dropped. |
drop old capture info and put new capture info should be atomic. |
the problem only happens in v4.0.14 |
close with #2388 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/ticdc
Issues or PRs related to TiCDC.
bug-from-internal-test
Bugs found by internal testing.
component/status-server
Status server component.
difficulty/easy
Easy task.
severity/minor
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
2x capture:
Starting component
cdc
: /root/.tiup/components/cdc/v5.1.0/cdc cli capture list --pd=http://172.16.6.24:2379[
{
"id": "3378b726-26cb-4963-8280-3ee679024a76",
"is-owner": false,
"address": "172.16.6.32:8300"
},
{
"id": "d2600da4-cdc4-4420-84a4-e57e826ffbc7",
"is-owner": true,
"address": "172.16.6.31:8300"
}
]
Restart all PD: $ tiup cluster restart 360UP -R pd
Check capture list
Starting component
cdc
: /root/.tiup/components/cdc/v5.1.0/cdc cli capture list --pd=http://172.16.6.24:2379[
{
"id": "2b0211bd-f3fc-4551-b4d1-a5c6bba5818e",
"is-owner": false,
"address": "172.16.6.32:8300"
},
{
"id": "3378b726-26cb-4963-8280-3ee679024a76",
"is-owner": false,
"address": "172.16.6.32:8300"
},
{
"id": "d2600da4-cdc4-4420-84a4-e57e826ffbc7",
"is-owner": true,
"address": "172.16.6.31:8300"
}
]
Waiting for several seconds, 2x capture list as expected:
Starting component
cdc
: /root/.tiup/components/cdc/v5.1.0/cdc cli capture list --pd=http://172.16.6.24:2379[
{
"id": "2b0211bd-f3fc-4551-b4d1-a5c6bba5818e",
"is-owner": true,
"address": "172.16.6.32:8300"
},
{
"id": "4b8e6f29-847d-4caf-bc7a-ea8cba317a28",
"is-owner": false,
"address": "172.16.6.31:8300"
}
]
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):TiCDC version (execute
cdc version
):The text was updated successfully, but these errors were encountered: