#20132·tikv

错误: 当刷新事件订阅者停止读取时,日志备份端点永远处于停滞状态

作者: YZL0v3ZZ创建于 2026年10月1日更新于 2026年10月1日
标签type/bugcontribution
  1. Enable log backup on a store and register a task, so a completed flush produces a checkpoint notification with one event per observed region.
  2. Open a SubscribeFlushEvent stream. In production, the checkpoint advancer holds this stream. It is also available to any client with access to the TiKV gRPC port.
  3. Stop reading from the stream while keeping the connection open. A paused consumer, a backlogged advancer, or a hung process is enough.
  4. Force a flush with FlushNow, or wait until a forced flush is already in flight.
  5. The unread notifications exhaust the gRPC stream window. SubscriptionManager::emit_events stays pending in feed(...).await, and the on_flushed call for the next forced flush parks the endpoint worker thread in sync_with_subs_mgr.

Run the integration test below to force this interleaving deterministically: