#26494·risingwave

回填可观察性: 在 rw_ddl_progress 中暴露停机原因,并修复 rw_rate_limit/rw_fragments 作业 ID 列的命名

作者: yuhao-su创建于 2026年7月30日更新于 2026年9月29日
标签type/enhancementno-issue-activityA-metatype/uxA-catalog
  1. rw_ddl_progress gives no reason for a stall Reproduced on main:
sql
SET BACKGROUND_DDL = true;
SET BACKFILL_RATE_LIMIT = 0;
CREATE MATERIALIZED VIEW mv_paused AS SELECT * FROM t;  -- t has 500k rows
 ddl_id |                     ddl_statement                     |          progress           | create_type
--------+-------------------------------------------------------+-----------------------------+-------------
      7 | CREATE MATERIALIZED VIEW mv_paused AS SELECT * FROM t | Snapshot [0.00% (0/500000)] | BACKGROUND

That output is byte-identical across at least five different situations:

  • scan paused by rate_limit = 0 (RateLimit::Pause)
  • fragment waiting on a backfill_order dependency — BackfillOrderState::remaining_backfill_nodes in src/meta/src/barrier/backfill_order_control.rs
  • LocalityProvider still in its buffering phase waiting for StartFragmentBackfill — src/stream/src/executor/locality_provider.rs:466
  • cluster paused (Mutation::Add { pause: true })
  • upstream genuinely has no data, or backfill is simply slow

内容来源: risingwavelabs/risingwave