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

PD placement rules should be enabled if using TiFlash #2219

Closed
yeya24 opened this issue Apr 16, 2020 · 3 comments · Fixed by #2328
Closed

PD placement rules should be enabled if using TiFlash #2219

yeya24 opened this issue Apr 16, 2020 · 3 comments · Fixed by #2328
Assignees

Comments

@yeya24
Copy link
Contributor

yeya24 commented Apr 16, 2020

Bug Report

What version of TiDB Operator are you using?

latest release

What did you do?

Start TiDBCluster with TiFlash

What did you expect to see?

TiFlash and TiDBcluster running normally

What did you see instead?

TiFlash failed to start because the PD placement-rules is not enabled, this is a prerequisite for TiFlash. Error log of TiFlash

klo yeya24-tiflash-0 -c proxylog
[2020/04/16 19:27:56.857 +00:00] [ERROR] [util.rs:327] ["request failed"] [err="Grpc(RpcFailure(RpcStatus { status: FailedPrecondition, details: Some(\"placement rules is disabled\") }))"]
[2020/04/16 19:27:56.857 +00:00] [ERROR] [util.rs:327] ["request failed"] [err="Grpc(RpcFailure(RpcStatus { status: FailedPrecondition, details: Some(\"placement rules is disabled\") }))"]
[2020/04/16 19:27:56.857 +00:00] [FATAL] [server.rs:287] ["failed to start node: Other(\"[src/pd/util.rs:335]: fail to request\")"]

PD config status:

pdctl config show | grep enable-placement
    "enable-placement-rules": "false",

If I manually enabled replacement rules in PD, then TiFlash starts perfectly

@DanielZhangQD
Copy link
Contributor

@yeya24 Thanks for reporting this issue, the integration with TiFlash is still in progress, we will enable the placement rules config automatically.

@yeya24
Copy link
Contributor Author

yeya24 commented Apr 27, 2020

This can be closed now.

@yeya24 yeya24 closed this as completed Apr 27, 2020
@DanielZhangQD DanielZhangQD reopened this Apr 29, 2020
@Yisaer
Copy link
Contributor

Yisaer commented Apr 29, 2020

I think we could using pdapi to configure placement rule before syncing tiflash instead of setting it in the config.toml in this PR https://github.com/pingcap/tidb-operator/pull/2328/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants