system.replication_queue

    Columns:

    • database (String) — Name of the database.

    • table () — Name of the table.

    • replica_name (String) — Replica name in ZooKeeper. Different replicas of the same table have different names.

    • position () — Position of the task in the queue.

    • node_name (String) — Node name in ZooKeeper.

    • type () — Type of the task in the queue: GET_PARTS, MERGE_PARTS, DETACH_PARTS, DROP_PARTS, or MUTATE_PARTS.

    • required_quorum (UInt32) — The number of replicas waiting for the task to complete with confirmation of completion. This column is only relevant for the GET_PARTS task.

    • source_replica () — Name of the source replica.

    • (String) — Name of the new part.

    • parts_to_merge ( (String)) — Names of parts to merge or update.

    • is_detach () — The flag indicates whether the DETACH_PARTS task is in the queue.

    • is_currently_executing (UInt8) — The flag indicates whether a specific task is being performed right now.

    • last_attempt_time () — Date and time when the task was last attempted.

    • num_postponed (UInt32) — The number of postponed tasks.

    • postpone_reason () — The reason why the task was postponed.

    • last_postpone_time (Datetime) — Date and time when the task was last postponed.

    • merge_type () — Type of the current merge. Empty if it’s a mutation.

    Example

    1. Row 1:
    2. ──────
    3. database: merge
    4. table: visits_v2
    5. position: 15
    6. node_name: queue-0009325559
    7. create_time: 2020-12-07 14:04:21
    8. required_quorum: 0
    9. source_replica: mtgiga001-1t.metrika.yandex.net
    10. new_part_name: 20201130_121373_121384_2
    11. 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']
    12. is_detach: 0
    13. is_currently_executing: 0
    14. num_tries: 36
    15. last_exception: Code: 226, e.displayText() = DB::Exception: Marks file '/opt/clickhouse/data/merge/visits_v2/tmp_fetch_20201130_121373_121384_2/CounterID.mrk' doesn't exist (version 20.8.7.15 (official build))
    16. last_attempt_time: 2020-12-08 17:35:54
    17. num_postponed: 0
    18. postpone_reason:

    See Also