Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate error message for PD address #1893

Closed
csuzhangxc opened this issue May 31, 2021 · 0 comments · Fixed by #2139
Closed

Inaccurate error message for PD address #1893

csuzhangxc opened this issue May 31, 2021 · 0 comments · Fixed by #2139
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@csuzhangxc
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

    run the CDC cli with unreachable PD address

  2. What did you expect to see?

  3. What did you see instead?

    /cdc cli
    
    Error: fail to open PD etcd client, pd-addr="http://127.0.0.1:2379": context deadline exceeded
    Usage:
    cdc cli [flags]
    cdc cli [command]
    
    Available Commands:
    capture     Manage capture (capture is a CDC server instance)
    changefeed  Manage changefeed (changefeed is a replication task)
    processor   Manage processor (processor is a sub replication task running on a specified capture)
    tso         Manage tso
    
    Flags:
        --ca string          CA certificate path for TLS connection
        --cert string        Certificate path for TLS connection
    -h, --help               help for cli
    -i, --interact           Run cdc cli with readline
        --key string         Private key path for TLS connection
        --log-level string   log level (etc: debug|info|warn|error) (default "warn")
        --pd string          PD address, use ',' to separate multiple PDs (default "http://127.0.0.1:2379")
    
    Use "cdc cli [command] --help" for more information about a command.
    
    fail to open PD etcd client, pd-addr="http://127.0.0.1:2379": context deadline exceeded
    

    the error message said: fail to open PD etcd client, pd-addr="http://127.0.0.1:2379"
    but the flag for PD address is --pd.

  4. Versions of the cluster

    • Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

      v5.0.1
      
    • TiCDC version (execute cdc version):

      v5.0.1
      
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. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants