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

Cannot use 'tiup cluster edit-config xxx' to modify the tidb slow query file path #2428

Open
tiancaiamao opened this issue Jun 18, 2024 · 1 comment
Labels
type/bug Categorizes issue as related to a bug.

Comments

@tiancaiamao
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
  • use tiup cluster edit-config xxx to edit the slow query file path
    server_configs:
    tidb:
    log.slow-query-file: /tidb-deploy/tidb-4000/log/testslow.log

  • reload the cluster: tiup cluster reload xxx

  • check the slow query file path, found the value is /tidb-deploy/tidb-4000/log/tidb_slow_query.log, it should be testslow.log

show config where name like '%slow%';

  • remove the slow-log command line configure from /tidb-deploy/deploy/tidb-4000/scripts/run_tidb.sh and then restart the cluster the new slow log path is used. But if tiup reload, it's overwrite again.
  1. What did you expect to see?

Using 'tiup cluster edit-config' to modify slow query file path should work.

  1. What did you see instead?

It does not work.

  1. What version of TiUP are you using (tiup --version)?

master

@tiancaiamao tiancaiamao added the type/bug Categorizes issue as related to a bug. label Jun 18, 2024
@seiya-annie
Copy link

/found customer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants