> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> `ReplicatedMergeTree` 계열 테이블에 대해 ClickHouse Keeper 또는 ZooKeeper에 저장된 복제 큐 작업 정보를 포함하는 시스템 테이블입니다.

# system.replication_queue

<div id="description">
  ## 설명
</div>

ClickHouse Keeper 또는 ZooKeeper에 저장된 `ReplicatedMergeTree` 계열 테이블의 복제 큐에 있는 작업 정보를 포함합니다.

<div id="columns">
  ## 컬럼
</div>

* `database` ([String](/ko/reference/data-types/index)) — 데이터베이스 이름입니다.
* `table` ([String](/ko/reference/data-types/index)) — 테이블 이름입니다.
* `replica_name` ([String](/ko/reference/data-types/index)) — ClickHouse Keeper의 레플리카 이름입니다. 같은 테이블의 각 레플리카는 서로 다른 이름을 가집니다.
* `position` ([UInt32](/ko/reference/data-types/index)) — 큐에서 작업의 위치입니다.
* `node_name` ([String](/ko/reference/data-types/index)) — ClickHouse Keeper의 노드 이름입니다.
* `type` ([String](/ko/reference/data-types/index)) — 큐에 있는 작업의 유형이며, 다음 중 하나입니다: • GET\_PART — 다른 레플리카에서 파트를 가져옵니다. • ATTACH\_PART — 파트를 ATTACH합니다. 분리된 폴더에서 찾은 경우 자체 레플리카의 파트를 사용할 수도 있습니다. 두 작업은 거의 동일하므로, 일부 최적화가 적용된 GET\_PART로 생각할 수 있습니다. • MERGE\_PARTS — 파트를 머지합니다. • DROP\_RANGE — 지정된 번호 범위에서 지정된 파티션의 파트를 삭제합니다. • CLEAR\_COLUMN — 참고: Deprecated. 지정된 파티션에서 특정 컬럼을 삭제합니다. • CLEAR\_INDEX — 참고: Deprecated. 지정된 파티션에서 특정 인덱스를 삭제합니다. • REPLACE\_RANGE — 특정 범위의 파트를 삭제하고 새 파트로 대체합니다. • MUTATE\_PART — 파트에 하나 이상의 뮤테이션을 적용합니다. • ALTER\_METADATA — 전역 /metadata 및 /columns 경로에 따라 ALTER 메타데이터 변경을 적용합니다.
* `create_time` ([DateTime](/ko/reference/data-types/index)) — 작업이 실행되도록 제출된 날짜와 시간입니다.
* `required_quorum` ([UInt32](/ko/reference/data-types/index)) — 완료 확인과 함께 작업이 완료되기를 기다리는 레플리카 수입니다. 이 컬럼은 GET\_PARTS 작업에만 해당합니다.
* `source_replica` ([String](/ko/reference/data-types/index)) — 소스 레플리카 이름입니다.
* `new_part_name` ([String](/ko/reference/data-types/index)) — 새 파트 이름입니다.
* `parts_to_merge` ([Array(String)](/ko/reference/data-types/index)) — 머지하거나 업데이트할 파트 이름입니다.
* `is_detach` ([UInt8](/ko/reference/data-types/index)) — DETACH\_PARTS 작업이 큐에 있는지 여부를 나타내는 플래그입니다.
* `is_currently_executing` ([UInt8](/ko/reference/data-types/index)) — 특정 작업이 현재 실행 중인지 여부를 나타내는 플래그입니다.
* `num_tries` ([UInt32](/ko/reference/data-types/index)) — 작업 완료에 실패한 시도 횟수입니다.
* `last_exception` ([String](/ko/reference/data-types/index)) — 마지막으로 발생한 오류 메시지입니다(있는 경우).
* `last_exception_time` ([DateTime](/ko/reference/data-types/index)) — 마지막 오류가 발생한 날짜와 시간입니다.
* `last_attempt_time` ([DateTime](/ko/reference/data-types/index)) — 작업을 마지막으로 시도한 날짜와 시간입니다.
* `num_postponed` ([UInt32](/ko/reference/data-types/index)) — 작업이 연기된 횟수입니다.
* `postpone_reason` ([String](/ko/reference/data-types/index)) — 작업이 연기된 이유입니다.
* `last_postpone_time` ([DateTime](/ko/reference/data-types/index)) — 작업이 마지막으로 연기된 날짜와 시간입니다.
* `merge_type` ([String](/ko/reference/data-types/index)) — 현재 머지의 유형입니다. 뮤테이션인 경우 비어 있습니다.

<div id="example">
  ## 예시
</div>

```sql theme={null}
SELECT * FROM system.replication_queue LIMIT 1 FORMAT Vertical;
```

```text theme={null}
Row 1:
──────
database:               merge
table:                  visits_v2
replica_name:           mtgiga001-1t
position:               15
node_name:              queue-0009325559
type:                   MERGE_PARTS
create_time:            2020-12-07 14:04:21
required_quorum:        0
source_replica:         mtgiga001-1t
new_part_name:          20201130_121373_121384_2
parts_to_merge:         ['20201130_121373_121378_1','20201130_121379_121379_0','20201130_121380_121380_0','20201130_121381_121381_0','20201130_121382_121382_0','20201130_121383_121383_0','20201130_121384_121384_0']
is_detach:              0
is_currently_executing: 0
num_tries:              36
last_exception:         Code: 226, e.displayText() = DB::Exception: Marks file '/opt/clickhouse/data/merge/visits_v2/tmp_fetch_20201130_121373_121384_2/CounterID.mrk' does not exist (version 20.8.7.15 (official build))
last_attempt_time:      2020-12-08 17:35:54
num_postponed:          0
postpone_reason:
last_postpone_time:     1970-01-01 03:00:00
```

<div id="see-also">
  ## 관련 항목
</div>

* [ReplicatedMergeTree 테이블 관리](/ko/reference/statements/system#managing-replicatedmergetree-tables)
