pingcap / pingcap/tidb

Some DDL related metrics are not correctly processed

Open
#63,209 6 comments 0 reactions 1 assignee Claimed by @joechenrh View on GitHub
affects-6.5 affects-7.1 affects-7.5 affects-8.1 affects-8.5 component/ddl component/metrics severity/major type/bug
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!

### 1. Minimal reproduce step (Required)

Each time TiDB execute an index DDL, a time series on metrics `tidb_ddl_backfill_percentage_progress` and `tidb_ddl_add_index_total` will be permanently added, causing problems when querying the corresponding Grafana after TiDB has been running for a long time.

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

The metrics are removed after add index finished.

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

Metrics remained after ddl finished.
Image

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

From v7.1.x to master

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.