# TiKV v8.5.4

2025-11-27 · [릴리스 노트 원문](https://github.com/tikv/tikv/releases/tag/v8.5.4) · [전체 정리](https://ratatosk.io/ko/releases/tikv/v8.5.4)

호환성 변경 5 · 폐기 예정 1 · 중요 수정 42 · 기능·개선 11 · 의존성 갱신 1 · 기타 50

## 업그레이드 전 확인

### 전제 조건

- **새로 생성한 v8.5.3 클러스터의 원활한 업그레이드**: 이번 릴리스에서는 시스템 변수와 설정 매개변수의 기본값과 동작을 변경합니다.
  > Newly created v8.5.3 clusters can be smoothly upgraded to v8.5.4. However, v8.5.4 introduces several default value changes and behavior adjustments for system variables and configuration parameters. Before upgrading, pay attention to the following:

  https://docs.pingcap.com/tidb/stable/release-8.5.4
- **사용자 지정 TiFlash 및 TiKV 컴팩션 설정을 위한 업그레이드 안내**: 대부분의 변경 사항은 일반적인 업그레이드에 안전하지만, 이러한 사용자 지정 설정을 사용하는 클러스터는 주의 깊게 검토해야 합니다.
  > - Most changes are safe for routine upgrades. However, if your cluster has undergone performance tuning, such as customized TiFlash and TiKV compaction configurations, read this section carefully.

  https://docs.pingcap.com/tidb/stable/release-8.5.4

## 호환성 변경 (5)

### `tidb_replica_read` 읽기 전용 SQL에만 적용

- 영향 대상: `tidb_replica_read`를 사용하는 SQL 문 (추정)

> tidb_replica_read Modified Starting from v8.5.4, this variable only takes effect on read-only SQL statements. This improves data read safety and reduces overlaps with other features. #62856 @you06

https://docs.pingcap.com/tidb/stable/release-8.5.4

### CPU 코어 수 기반 `server.grpc-raft-conn-num` 기본값

- 영향 대상: `server.grpc-raft-conn-num`의 기본값을 사용하는 TiKV 구성

이전 기본값은 1이었지만, 이제 CPU 코어 수에 따라 `MAX(1, MIN(4, CPU cores / 8))`을 적용해 연결 수를 조정합니다.

> TiKV server.grpc-raft-conn-num Modified Changes the default value from 1 to MAX(1, MIN(4, CPU cores / 8)) , which enables gRPC-related thread settings to adapt to the number of CPU cores. When the number of CPU cores equals or exceeds 32, the maximum default number of connections is 4. #18806 @LykxSassinator

https://docs.pingcap.com/tidb/stable/release-8.5.4

### TiKV의 `server.grpc-concurrency` 기본값 변경

- 영향 대상: `server.grpc-concurrency`의 기본값을 사용하는 TiKV 구성

기본값은 5였지만, 해당 기본값을 계속 사용하는 구성에는 이제 `grpc-raft-conn-num * 3 + 2`가 적용됩니다. 이에 따라 gRPC 관련 스레드 설정이 CPU 코어 수에 맞춰 조정됩니다.

> TiKV server.grpc-concurrency Modified Changes the default value from 5 to grpc-raft-conn-num * 3 + 2 , which enables gRPC-related thread settings to adapt to the number of CPU cores. #18806 @LykxSassinator

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `SELECT FOR UPDATE` 문에서 `max_execution_time` 적용 수정

- 영향 대상: `SELECT FOR UPDATE` 문에 `max_execution_time`을 설정한 환경

이 수정 전에는 `SELECT FOR UPDATE` 문을 실행할 때 `max_execution_time`이 적용되지 않았습니다.

> - Fix the issue that max_execution_time does not take effect for SELECT FOR UPDATE statements #62960 @ ekexium

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 버킷 보고 비활성화 시 버킷 분할 중단

- 영향 대상: 버킷 보고를 비활성화하고 버킷 분할을 사용하는 구성 (추정)

이 수정 전에는 버킷 보고를 비활성화해도 버킷 분할이 계속 동작했습니다.

> - Fix the issue that splitting buckets still works even after bucket reporting is disabled #9726 @ bufferflies

https://docs.pingcap.com/tidb/stable/release-8.5.4

## 폐기 예정 (1)

### TiKV 자동 컴팩션 설정을 `gc.auto-compaction`으로 대체

- 영향 대상: `region-compact-*` 항목 또는 `gc.auto-compaction` 설정을 사용하는 TiKV 구성 (추정)
- 제거 시점: 미상

기존에는 `region-compact-*` 항목이 이 동작을 설정했습니다. 새 설정 그룹이 자동 컴팩션을 제어합니다.

> TiKV - region-compact-check-interval
> - region-compact-check-step
> - region-compact-min-tombstones
> - region-compact-tombstones-percent
> - region-compact-min-redundant-rows
> - region-compact-redundant-rows-percent
> Deprecated These configuration items are replaced by the gc.auto-compaction configuration group, which controls the automatic compaction behavior. #18727 @v01dstar
> TiKV gc.auto-compaction configuration group: - gc.auto-compaction.check-interval
> - gc.auto-compaction.tombstone-num-threshold
> - gc.auto-compaction.tombstone-percent-threshold
> - gc.auto-compaction.redundant-rows-threshold
> - gc.auto-compaction.redundant-rows-percent-threshold
> - gc.auto-compaction.bottommost-level-force
> Newly added This configuration group controls the automatic compaction behavior. #18727 @v01dstar

https://docs.pingcap.com/tidb/stable/release-8.5.4

## 중요 수정 (42)

### 긴 구간의 행 수 과대 추정 수정

- 영향 대상: 수개월 또는 수년에 걸친 행 수 추정치

이러한 추정치가 실제보다 상당히 높게 나올 수 있었습니다.

> - Fix the issue that row count estimates across months or years can be significantly overestimated #50080 @ terry1purcell

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `INFORMATION_SCHEMA` 정규식 쿼리 결과 오류 수정

- 영향 대상: `INFORMATION_SCHEMA` 쿼리

정규식을 사용해 `INFORMATION_SCHEMA` 테이블을 조회하면 잘못된 결과가 반환될 수 있습니다.

> - Fix the issue that queries using regular expressions against INFORMATION_SCHEMA tables might return incorrect results #62347 @ River2000i

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `ADMIN ALTER DDL JOBS` 매개변수 표시 수정

- 영향 대상: 매개변수를 동적으로 수정하고 `ADMIN ALTER DDL JOBS` 문을 사용하는 환경

매개변수를 동적으로 수정한 뒤 `ADMIN ALTER DDL JOBS` 문에 잘못된 매개변수 값이 표시되는 문제가 있었습니다.

> - Fix the issue that ADMIN ALTER DDL JOBS statements display incorrect parameter values after dynamically modifying parameters #63201 @ fzzf678

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `ATAN2` 결과 오류 수정

- 영향 대상: `ATAN2` 함수를 사용하는 쿼리

`ATAN2`를 사용하면 잘못된 결과가 나올 수 있었으며, 이번 릴리스에서 이 동작을 수정했습니다.

> - Fix the issue that using the ATAN2 function might produce incorrect results #60093 @ guo-shaoge

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 바인딩과 함께 `set_var` 힌트 사용 시 변수 복원 문제 수정

- 영향 대상: 바인딩에서 `set_var` 힌트를 사용하는 경우

바인딩과 함께 `set_var` 힌트를 사용하면 변수가 복원되지 않아 원래 값과 다른 설정을 유지할 수 있었습니다. 이제 이 경우에도 변수가 원래 설정으로 복원됩니다.

> - Fix the issue that using the set_var hint with bindings prevents variables from being restored to their original settings #59822 @ wddevries

https://docs.pingcap.com/tidb/stable/release-8.5.4

### [드러나지 않던 결함] 외부 조인을 내부 조인으로 재작성할 때 발생하는 잘못된 결과 수정

- 영향 대상: 외부 조인을 내부 조인으로 재작성하는 쿼리

외부 조인을 내부 조인으로 재작성할 때 잘못된 결과가 나올 수 있었습니다. 이번 릴리스에서 이 문제가 수정되었습니다.

> - Fix the issue that rewriting an outer join to an inner join might produce incorrect results #61327 @ hawkingrei

https://docs.pingcap.com/tidb/stable/release-8.5.4

### [드러나지 않던 결함] 글로벌 인덱스의 잘못된 결과 수정

- 영향 대상: 글로벌 인덱스를 사용하는 구성

일부 경우 글로벌 인덱스에서 잘못된 결과가 반환될 수 있었습니다. 이번 릴리스에서 이 문제가 수정되었습니다.

> - Fix the issue that the global index might return incorrect results in some cases #61083 @ Defined2014

https://docs.pingcap.com/tidb/stable/release-8.5.4

### [드러나지 않던 결함] `character_set_results` 문자 대체 수정

- 영향 대상: `character_set_results`를 사용하는 설정

이전에는 영향을 받는 문자가 대체되지 않고 잘렸습니다. 이제는 잘리는 대신 대체됩니다.

> - Fix the issue that character_set_results truncates incorrect characters instead of replacing them #61085 @ xhebox

https://docs.pingcap.com/tidb/stable/release-8.5.4

### TSO HTTP API의 잘못된 결과 수정

- 영향 대상: TSO HTTP API의 `/config` 또는 `/members` 엔드포인트를 사용하는 환경

이 릴리스 이전에는 해당 엔드포인트가 잘못된 결과를 반환했습니다.

> - Fix the issue that the TSO HTTP API /config and /members return incorrect results #9797 @ lhy1024

https://docs.pingcap.com/tidb/stable/release-8.5.4

### TiFlash RU 사용량 통계 과대 집계 수정

- 영향 대상: RU 사용량 통계를 생성하는 TiFlash 환경 (추정)

TiFlash가 RU 사용량 통계를 생성할 때 보고된 값이 실제보다 높게 나왔습니다.

> - Fix the issue that TiFlash generates inflated statistics for RU consumption #10380 @ JinheLin

https://docs.pingcap.com/tidb/stable/release-8.5.4

### [드러나지 않던 결함] `FLOOR()` 및 `CEIL()`의 `DECIMAL` 결과 수정

- 영향 대상: `DECIMAL` 매개변수로 `FLOOR()` 또는 `CEIL()`을 사용하는 TiFlash 구성

`DECIMAL` 매개변수로 호출하면 이 함수들이 잘못된 결과를 반환할 수 있었습니다. 이제 올바른 결과를 반환합니다.

> - Fix the issue that the FLOOR() and CEIL() functions might return incorrect results when their parameters are of the DECIMAL type #10365 @ ChangRui-Ryan

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 복원 후 `mysql.stats_meta`의 `count` 값이 0이 되는 문제 수정

- 영향 대상: `--checksum`을 false로 설정해 만든 백업

복원 후 `mysql.stats_meta`의 `count` 컬럼 값이 0이 될 수 있었습니다. 이번 릴리스에서 이 문제가 수정되었습니다.

> - Fix the issue that setting --checksum to false during backup might cause the count column in the mysql.stats_meta table to become 0 after restore #60978 @ Leavrth

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 로그 백업의 zstd 압축 복구

- 영향 대상: 기본 zstd fastest 설정으로 로그 백업을 사용하는 TiKV 구성

로그 백업에서 기본 알고리즘으로 zstd fastest를 사용할 때, `async-compression` v0.4.12의 음수 기본 레벨로 인해 zstd 압축이 비활성화되거나 효과가 없었습니다.

> - tikv/tikv#18836
> - Fix the issue that zstd compression in log backup does not take effect, causing the output to remain uncompressed #18836 @ 3pointer

### Azure Blob 백업 플러시 지연 수정

- 영향 대상: 업로드 데이터가 메모리가 아닌 소스에서 읽히는 Azure Blob Storage 백업 구성

Azure Blob Storage에 백업하는 동안 400 MiB 플러시에 약 17분이 걸리고 CPU 코어 하나를 전부 사용할 수 있었습니다.

> - tikv/tikv#18410
> - Fix the issue that the flush operation occasionally becomes slow when backing up data to Azure Blob Storage #18410 @ YuJuncen

### GC 세이프 포인트를 사용하는 컴팩션 점수 산정

- 영향 대상: GC 세이프 포인트와 관련해 컴팩션 점수를 계산하는 TiKV 구성 (추정)

MVCC 중복도는 GC 세이프 포인트와 RocksDB 통계를 사용해 계산되므로 컴팩션 점수 산정의 효율성과 정확성이 개선됩니다.

> - tikv/tikv#18697
> - Calculate MVCC redundancy based on GC safe points and RocksDB statistics to improve the efficiency and accuracy of compaction #18697 @ v01dstar

### 로그 백업 리전 관측 누락 수정

- 영향 대상: 로그 백업 설정

새 로그 백업 작업을 초기화하는 동안 리전이 리더가 되면, `Start`와 `Stop` observe 메시지의 순서가 바뀌어 해당 리전에 대한 관측이 누락될 수 있었습니다. 이로 인해 오래된 observe ID 오류가 발생하고 진행 상황이 더는 갱신되지 않았습니다. 이제 옵저버는 이 상황에서도 해당 리전을 계속 관측합니다.

> - tikv/tikv#18243
> - Fix the issue that log backup observer might lose the observation on a Region, causing the log backup progress to fail to advance #18243 @ Leavrth

### TiKV CDC 어설션 패닉 수정

- 영향 대상: TiKV CDC를 사용하는 구성

TiKV v8.5.1에서는 CDC 처리 경로에서 타임스탬프가 일치하지 않을 때 어설션이 발생할 수 있었고, 이로 인해 TiCDC가 패닉할 수 있었습니다.

> - tikv/tikv#18498
> - Fix the issue that assertion errors in TiKV might cause TiCDC to panic #18498 @ tharanga

### CDC 리전 구독 패닉 수정

- 영향 대상: CDC를 사용하는 구성

키 롤백과 prewrite 항목 사이에 리전을 구독하면 CDC에서 이론적으로 패닉이 발생할 수 있었습니다. 이슈 보고서에 따르면 실제로는 발생하지 않았습니다.

> - tikv/tikv#19048
> - Fix the issue that TiCDC might panic when encountering rollback and prewrite entries during Region subscription #19048 @ 3AceShowHand

### 인덱스 관련 DDL의 ANALYZE 지원

- 영향 대상: `tidb_stats_update_during_ddl`을 활성화한 TiDB 환경

새 인덱스가 표시되거나 재구성된 인덱스가 다시 표시되기 전에 TiDB가 ANALYZE를 실행합니다. 이를 통해 통계를 사용할 수 없는 동안 옵티마이저 추정치가 부정확해지거나 실행 계획이 바뀌는 일을 줄입니다. 이 변수는 기본적으로 OFF이며, 활성화하면 대형 테이블에서 ADD INDEX 실행 시간이 늘어날 수 있습니다.

> - Support ANALYZE embedded in DDL statements #57948 @ terry1purcell @ AilinKid
> This feature applies to the following types of DDL statements:
> - DDL statements that create new indexes: ADD INDEX
> - DDL statements that reorganize existing indexes: MODIFY COLUMN and CHANGE COLUMN
> When this feature is enabled, TiDB automatically runs an ANALYZE (statistics collection) operation before the new or reorganized index becomes visible to users. This prevents inaccurate optimizer estimates and potential plan changes caused by temporarily unavailable statistics after index creation or reorganization.
> For more information, see documentation .

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 자동 복구 가능한 BR 백업 오류의 WARN 기록

- 영향 대상: BR 백업 작업

`backup snapshot failed` 및 `backup writer failed` 같은 상황에서 자동으로 복구할 수 있는 오류가 이전에는 `ERROR` 수준으로 기록됐습니다. 이런 상황은 오류 수준으로 처리할 사안이 아니며 수동 조작도 필요하지 않습니다.

> - Change the log level of certain automatically recoverable errors in the BR module from ERROR to WARN to reduce unnecessary alerts #18493 @ YuJuncen
> - tikv/tikv#18493

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 일부 TiKV 오류의 로그 수준을 `WARN`으로 조정

- 영향 대상: 영향을 받는 오류를 출력하는 TiKV 구성

해당 오류가 발생하면 이전에는 `ERROR` 수준으로 기록했지만, 이제 `WARN` 수준으로 기록해 불필요한 알림을 줄입니다.

> - Change the log level of certain TiKV errors from ERROR to WARN to reduce unnecessary alerts #18745 @ exit-code-1

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `TRUNCATE()` short path 처리 오류 수정

- 영향 대상: `TRUNCATE()`에서 short path를 사용하는 쿼리 (추정)

> - Fix the issue that the short path in the TRUNCATE() function is incorrectly processed #57608 @ xzhangxian1008

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 로컬 임시 공간 할당량 초과 오류 발생 시 스필 파일 정리 수정

- 영향 대상: 파일을 스필하는 환경

로컬 임시 공간 할당량 초과 오류가 발생하면 스필 파일이 완전히 삭제되지 않을 수 있었습니다.

> - Fix the issue that spilled files might not be fully deleted when the Out Of Quota For Local Temporary Space error is triggered #63216 @ xzhangxian1008

https://docs.pingcap.com/tidb/stable/release-8.5.4

### PD 타임스탬프 조회 실패 시 TiDB 오류 보고 수정

- 영향 대상: PD에서 타임스탬프를 가져오는 TiDB 구성

이전에는 TiDB가 PD에서 타임스탬프를 가져오지 못해도 오류를 반환하지 않았습니다.

> - Fix the issue that TiDB does not return an error when it fails to get a timestamp from PD #58871 @ joechenrh

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 오너와 비오너 TiDB 인스턴스 간 쿼리 결과 불일치 수정

- 영향 대상: 오너 및 비오너 TiDB 인스턴스에서 실행하는 `MODIFY COLUMN` 문

`MODIFY COLUMN` 문을 실행할 때 오너 TiDB 인스턴스와 비오너 TiDB 인스턴스 간 쿼리 결과가 달랐습니다.

> - Fix the issue that query results differ between the owner TiDB and non-owner TiDB instances during executing MODIFY COLUMN statements #60264 @ tangenta

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 트랜잭션에서 인덱스 추가 시 GC safe point 전진 문제 수정

- 영향 대상: 인덱스를 추가하는 트랜잭션

트랜잭션 내에서 인덱스를 추가해도 GC safe point가 앞으로 이동하지 않았습니다.

> - Fix the issue that the GC safe point does not advance when adding an index within a transaction #62424 @ wjhuang2016

https://docs.pingcap.com/tidb/stable/release-8.5.4

### DXF 작업 취소 시 종료 실패 수정

- 영향 대상: DXF를 사용하는 구성

DXF 작업이 취소되었을 때 다른 작업이 실행 중이면 해당 작업들이 종료되지 않는 문제가 있었습니다.

> - Fix the issue that after the DXF task is canceled, other tasks fail to exit #63927 @ D3Hunter

https://docs.pingcap.com/tidb/stable/release-8.5.4

### Apply 오퍼레이터 계획 생성 실패 수정

- 영향 대상: Apply 오퍼레이터 동시성을 켜고 `tidb_enable_parallel_apply = on`으로 설정한 환경

`tidb_enable_parallel_apply = on`으로 설정하면 Apply 오퍼레이터의 동시성 경로에 clone 구현이 없어 계획 생성에 실패했습니다.

> - Fix the issue that enabling the Apply operator concurrency ( tidb_enable_parallel_apply = on ) causes plan generation failure due to a missing clone implementation #59863 @ hawkingrei

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `ONLY_FULL_GROUP_BY` 검사의 대소문자 비구분 동작 수정

- 영향 대상: `ONLY_FULL_GROUP_BY` 검사 (추정)

검사가 입력의 대소문자에 따라 동작이 달라지는 경우에도 대소문자를 구분하지 않았습니다. 이 동작은 수정됐지만, 노트에는 변경 후 동작이 명시되어 있지 않습니다.

> - Fix the issue that the ONLY_FULL_GROUP_BY check is case-insensitive #62672 @ AilinKid

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 일부 쿼리 실행 시 내부 패닉 발생 문제 수정

- 영향 대상: 영향을 받는 쿼리를 실행하는 환경

일부 쿼리를 실행하면 내부 패닉이 발생할 수 있었습니다. 릴리스 노트에는 어떤 쿼리인지 나와 있지 않습니다.

> - Fix the issue that executing certain queries might cause an internal panic #58600 @ Defined2014

https://docs.pingcap.com/tidb/stable/release-8.5.4

### `ALTER PARTITION` 중 글로벌 인덱스 조회 오류 수정

- 영향 대상: 글로벌 인덱스를 사용하고 `ALTER PARTITION` 작업을 수행하는 환경

일부 `ALTER PARTITION` 작업 중 글로벌 인덱스가 잘못된 데이터를 반환할 수 있었습니다. 이번 릴리스에서 해당 조회 문제가 수정되었습니다.

> - Fix the issue that the global index might read incorrect data during certain ALTER PARTITION operations #64084 @ mjonss

https://docs.pingcap.com/tidb/stable/release-8.5.4

### Resource Manager 토큰 할당 수정

- 영향 대상: Resource Manager를 사용하는 구성 (추정)

Resource Manager가 토큰을 잘못 할당하면 쿼리가 멈출 수 있었습니다.

> - Fix the issue that the Resource Manager incorrectly allocates tokens, causing queries to be stuck #9455 @ JmPotato

https://docs.pingcap.com/tidb/stable/release-8.5.4

### PD 리더 전환 후 Placement Rules 미적용 문제 수정

- 영향 대상: Placement Rules를 사용하는 구성

PD 리더가 전환될 때 Placement Rules가 적용되지 않던 문제를 수정했습니다.

> - Fix the issue that Placement Rules do not take effect after PD leader switches #9602 @ okJiang

https://docs.pingcap.com/tidb/stable/release-8.5.4

### PD의 큰 과학적 표기법 숫자 파싱 오류 수정

- 영향 대상: 과학적 표기법으로 표기된 큰 숫자 값이 포함된 TTL 관련 설정

PD가 과학적 표기법으로 표시된 큰 숫자 값을 파싱하지 못해 TTL 관련 설정 일부가 적용되지 않을 수 있었습니다.

> - Fix the issue that PD might fail to parse large numeric values in scientific notation, which consequently causes some TTL-related configurations to not take effect #9343 @ lhy1024

https://docs.pingcap.com/tidb/stable/release-8.5.4

### TiFlash 메모리 부족 문제 수정

- 영향 대상: 스토리지와 컴퓨트가 분리된 TiFlash

느린 쿼리가 있으면 TiFlash에서 메모리가 부족해질 수 있었습니다. 이번 릴리스에서 이 문제가 수정되었습니다.

> - Fix the issue that TiFlash might encounter OOM when slow queries exist under the disaggregated storage and compute architecture #10278 @ JaySon-Huang

https://docs.pingcap.com/tidb/stable/release-8.5.4

### S3 사용 시 TiFlash 무한 재시도 수정

- 영향 대상: S3를 사용하는 스토리지·컴퓨팅 분리형 구성의 TiFlash 배포

TiFlash와 S3 사이에 네트워크 분할이 발생하면 TiFlash가 무한정 재시도할 수 있었습니다. 이 무한 재시도 동작을 수정했습니다.

> - Fix the issue that TiFlash might retry indefinitely when a network partition occurs between TiFlash and S3 under the disaggregated storage and compute architecture #10424 @ JaySon-Huang

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 파일 삭제 실패 시 로그 절단 문제 수정

- 영향 대상: 파일 삭제가 포함된 로그 작업 (추정)

파일 삭제에 실패하면 로그가 잘릴 수 있었습니다.

> - Fix the issue that log truncate might occur when file deletion fails #63358 @ YuJuncen

https://docs.pingcap.com/tidb/stable/release-8.5.4

### 대역폭 제한 S3 호환 스토리지의 BR 복원 실패 위험 감소

- 영향 대상: 대역폭 제한이 활성화된 S3 호환 스토리지 서비스

스트림 정체 보호 기능이 다운로드 요청을 종료할 수 있었고, 이로 인해 다운로드가 처음부터 다시 시작된 뒤 “streaming error”로 실패할 수 있었습니다. 이번 릴리스에서는 이러한 복원 실패 가능성을 낮추지만 완전히 없애지는 않습니다.

> - Reduce the possibility of BR failing to restore data from S3-compatible storage services when the bandwidth limits on these services are enabled #18846 @ kennytm
> - tikv/tikv#18846

https://docs.pingcap.com/tidb/stable/release-8.5.4

### TiCDC 컬럼 타입 파티션 디스패처 패닉 수정

- 영향 대상: 가상 컬럼을 사용하는 TiCDC 컬럼 타입 파티션 디스패처

> - Fix a panic that could occur when configuring a column-type partition dispatcher that includes virtual columns #12241 @ wk989898

https://docs.pingcap.com/tidb/stable/release-8.5.4

### DDL puller 종료 시 패닉 수정

- 영향 대상: DDL puller를 닫는 TiCDC 환경

DDL puller를 닫을 때 패닉이 발생할 수 있었습니다. 이번 릴리스부터는 닫아도 패닉이 발생하지 않습니다.

> - Fix a panic that could occur when closing the DDL puller #12244 @ wk989898

https://docs.pingcap.com/tidb/stable/release-8.5.4

### Azure Blob Storage 체인지피드 태스크 정체 문제 수정

- 영향 대상: Azure Blob Storage를 다운스트림으로 사용하는 TiCDC 체인지피드

이 구성에서는 태스크가 멈출 수 있었으며, 이번 릴리스에서 해당 문제를 해결합니다.

> - Fix the issue that changefeed tasks might get stuck when using Azure Blob Storage as the downstream #12277 @ zurakutsia

https://docs.pingcap.com/tidb/stable/release-8.5.4

### TiCDC의 `DROP FOREIGN KEY` DDL 복제 수정

- 영향 대상: TiCDC를 사용해 다운스트림으로 DDL을 복제하는 환경 (추정)

`DROP FOREIGN KEY` DDL을 다운스트림으로 복제할 때 해당 DDL이 전송되지 않았습니다. 이제 복제됩니다.

> - Fix the issue that DROP FOREIGN KEY DDL is not replicated to the downstream #12328 @ 3AceShowHand

https://docs.pingcap.com/tidb/stable/release-8.5.4

## 기능·개선 (11)

- gRPC 과부하 대기 시간 메트릭
- 테이블별 분포 점검 및 재분배 (사용 조건: v8.5.4 이상)
- TiDB, 파티션 테이블의 비고유 컬럼에 글로벌 인덱스 지원 추가 (사용 조건: TiDB v8.5.4 이상)
- 선택적으로 사용할 수 있는 재설계된 TiCDC 아키텍처 (사용 조건: TiCDC 설정 항목 `newarch`를 `true`로 설정)
- SELECT 목록 서브쿼리 비상관화 제어 변수 추가
- `EXISTS` 서브쿼리 재작성 제어 시스템 변수 추가
- `ADD INDEX` 중 내장 `ANALYZE`
- IN 서브쿼리 세미 조인에서 `semi_join_rewrite` 지원 (사용 조건: `semi_join_rewrite` 힌트를 IN 서브쿼리의 세미 조인에 적용)
- Grafana SQL Execute Time Overview 패널에 백오프 메트릭 추가
- scatter-role 및 엔진 차원에서의 PD 테이블 단위 Region 분산
- TiCDC의 지원되지 않는 DDL 유형 필터링 지원 (사용 조건: 필터 설정의 `ignore-txn-start-ts` 매개변수)

## 의존성 갱신 (1)

그 외 1건 · 보안 언급 없음

- `- Upgrade the Golang version from 1.23.0 to 1.23.12 and update related dependencies #9788 @ JmPotato`

## 기타 (50)

- `cleanup_worker`에 중복 컴팩션 작업 큐잉
- SST 수집 호환성 가드 동작
- Titan 리전 크기 추정 문제 안내
- IMPORT INTO 정리 실패 문제 기록
- 느린 `Tick(CompactCheck)` 처리 사례
- 리소스 컨트롤 자동 우선순위 제한기의 읽기 지연
- SST 파일 수 증가에 따른 비동기 스냅샷 테일 레이턴시
- BR 복원 다운로드 실패 로그 문제
- RocksDB 기본 매니페스트 크기 상향 제안
- 스토어 크기 보고의 잦은 실행 문제 기록
- SST 임포터 캐시 데드락 문제 보고
- tikv-cdc 어설션 실패로 패닉 발생
- `RawRecords` top-N 집계 제안
- TiKV RocksDB 쓰기 크래시 문제 보고
- TiFlash MPP 태스크의 graceful shutdown
- TiDB의 새 TiFlash 노드 쿼리 전 기본 대기 제거
- TiKV의 `rocksdb.max-manifest-file-size` 기본값 상향
- TiCDC에 `scheduler.region-count-per-span` 테이블 분할 설정 추가
- TiDB의 초과 자릿수 `DECIMAL` 삽입 허용 및 절삭
- TiDB 추정 전략 최적화
- TiDB 옵티마이저의 인덱스 선택 로직 조정
- 고유 값 수가 적은 컬럼의 TiDB 쿼리 추정 최적화
- TiDB Index Join 쿼리의 `LIMIT OFFSET` 추정치 최적화
- TiDB 범위 밖 추정 최적화
- TiDB 감사 로그에 statement ID 정보 추가
- Raft GC 검사 2단계 분리
- Region MVCC GC 처리 경로를 GC 워커 스레드로 이전
- 기본 gRPC 스레드 풀 크기의 CPU 할당량 연동
- PD의 불필요한 오류 로그 출력 감소
- TiFlash의 TableScan에서 불필요한 읽기 생략
- 열이 많고 데이터가 희소한 테이블의 TiFlash TableScan 성능 최적화
- 벡터 인덱스 추가 시 TiFlash CPU 오버헤드 감소
- 불필요한 Raft 명령으로 인한 TiFlash 로그 감소
- 규모가 작은 파티션 테이블의 TiFlash `TableScan` 성능 개선
- TiDB Data Migration의 대소문자 구분 없는 업스트림 `GTID_MODE` 매칭
- TiFlash 격리 읽기에서 `USE INDEX` 힌트가 적용되지 않던 문제 수정
- TiDB prepared statement의 Decimal 처리 수정
- L0에 지나치게 큰 SST 파일을 ingest할 때 발생하는 플로 컨트롤 수정
- CPU 대 메모리 비율이 1:2일 때 글로벌 정렬 수정
- 대기 중인 DXF 작업 취소 수정
- `select 1 from dual`에 인스턴스 수준 플랜 캐시 활성화
- 쿼리 조인 순서 변경 시 발생하던 플래너 오류 수정
- `ONLY_FULL_GROUP_BY` 음수 값 검증 실패 수정
- DP 조인 순서 알고리즘의 잘못된 실행 계획 수정
- 동시 `ADD COLUMN` 및 `UPDATE` 실행 시 발생하는 오류 수정
- Merge Join의 필터 조건 비용 계산 수정
- PD Client 재시도 전략 초기화 수정
- TSO Follower Proxy 오류 처리 수정
- TiFlash 쿼리 실패 수정
- 특수 스키마가 포함된 경우 복원 지점 생성 실패 수정

---

정리 내용은 AI가 작성하므로 틀릴 수 있으며, 보증 없이 제공합니다.
