tiup icon indicating copy to clipboard operation
tiup copied to clipboard

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

Open tiancaiamao opened this issue 1 year ago • 1 comments

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 avatar Jun 18 '24 09:06 tiancaiamao

/found customer

seiya-annie avatar Jul 05 '24 09:07 seiya-annie