pingcap / pingcap/tidb

After moving/deleting the slow log files, TiDB won't generate new files

Open
#54,079 3 comments 0 reactions 0 assignees View on GitHub
type/feature-request
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!
问题描述:
mv或者rm慢日志文件,不会在线生成新的慢日志文件,需要restart集群才会生成新的慢日志文件

### 1. Minimal reproduce step (Required)

问题现象:
1、把tidb_slow_query.log日志删掉之后,没有新生成文件,需要重启restart之后才会重新生成。正常应该删除之后,立即就会生成正确的慢日志文件;

2、把tidb_slow_query.log日志mv之后,没有新生成文件,慢日志还是写入到之前的文件里,重启restart之后才会写入到新生成的文件里。正常应该mv之后,就会新生成正确的慢日志文件。

### 2. What did you expect to see? (Required)

### 3. What did you see instead (Required)

### 4. What is your TiDB version? (Required)
tidb v8.1.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.