Skip to content

PD microservice mode switch blocked #10990

Description

@csuzhangxc

Bug Report

PD mode switch: ms --> normal --> ms (blocked)

What did you do?

  1. Deploy PD in microservice mode
  2. Switch to the normal mode
  3. Try to switch to the microservice mode again, but it is blocked, as the TSO instances stay unhealthy

What did you expect to see?

What did you see instead?

What version of PD are you using (pd-server -V)?

$ curl https://127.0.0.1:3379/tso/api/v1/config  -sS  --location --cacert /var/lib/tso-tls/ca.crt --cert /var/lib/tso-tls/tls.crt --key /var/lib/tso-tls/tls.key
{
    "backend-endpoints": "https://db-4a577a8b-pd.tidb2075022890960429056.svc.cluster.local:2379",
    "listen-addr": "https://[::]:3379",
    "advertise-listen-addr": "https://db-4a577a8b-tso-7uw1ts.db-cluster.tidb2075022890960429056.svc.cluster.local:3379",
    "name": "db-4a577a8b-7uw1ts",
    "lease": 5,
    "enable-local-tso": false,
    "tso-save-interval": "5s",
    "tso-update-physical-interval": "50ms",
    "max-gap-reset-ts": "24h0m0s",
    "metric": {
        "job": "",
        "address": "",
        "interval": "0s"
    },
    "WarningMsgs": [
        "Config contains undefined item: replication, replication.enable-placement-rules"
    ],
    "log": {
        "level": "info",
        "format": "text",
        "disable-timestamp": false,
        "file": {
            "filename": "",
            "max-size": 0,
            "max-days": 0,
            "max-backups": 3
        },
        "development": false,
        "disable-caller": false,
        "disable-stacktrace": false,
        "disable-error-verbose": true,
        "sampling": null,
        "error-output-path": ""
    },
    "Logger": {},
    "LogProps": {
        "Core": {
            "LevelEnabler": "info"
        },
        "Syncer": {},
        "Level": "info"
    },
    "security": {
        "cacert-path": "/var/lib/tso-tls/ca.crt",
        "cert-path": "/var/lib/tso-tls/tls.crt",
        "key-path": "/var/lib/tso-tls/tls.key",
        "cert-allowed-cn": [
            "54a9d2a2"
        ],
        "SSLCABytes": null,
        "SSLCertBytes": null,
        "SSLKEYBytes": null,
        "redact-info-log": true,
        "encryption": {
            "data-encryption-method": "plaintext",
            "data-key-rotation-period": "168h0m0s",
            "master-key": {
                "type": "plaintext",
                "key-id": "",
                "region": "",
                "endpoint": "",
                "path": ""
            }
        }
    }
}



curl https://127.0.0.1:3379/tso/api/v1/keyspace-groups/members  -sS  --location --cacert /var/lib/tso-tls/ca.crt --cert /var/lib/tso-tls/tls.crt --key /var/lib/tso-tls/tls.key
{}

/pd-ctl --cacert /var/lib/pd-tls/ca.crt --cert /var/lib/pd-tls/tls.crt --key /var/lib/pd-tls/tls.key  -u https://127.0.0.1:2379/ keyspace-group
Failed to get the keyspace groups information: [500] "keyspace group manager is not initialized"

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.type/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions