错误: 当刷新事件订阅者停止读取时,日志备份端点永远处于停滞状态
作者: YZL0v3ZZ创建于 2026年10月1日更新于 2026年10月1日
标签type/bugcontribution
- Enable log backup on a store and register a task, so a completed flush produces a checkpoint notification with one event per observed region.
- Open a
SubscribeFlushEventstream. In production, the checkpoint advancer holds this stream. It is also available to any client with access to the TiKV gRPC port. - Stop reading from the stream while keeping the connection open. A paused consumer, a backlogged advancer, or a hung process is enough.
- Force a flush with
FlushNow, or wait until a forced flush is already in flight. - The unread notifications exhaust the gRPC stream window.
SubscriptionManager::emit_eventsstays pending infeed(...).await, and theon_flushedcall for the next forced flush parks the endpoint worker thread insync_with_subs_mgr.
Run the integration test below to force this interleaving deterministically:
内容来源: tikv/tikv