apache/pulsar

Make the autoSkipNonRecoverableData can work for cursor ledger

开放

#17,220 创建于 2022年8月23日

 (4 条评论) (0 个反应) (1 位负责人)Java (3,485 个派生)batch import
Stalehelp wanted

仓库指标

星标
 (13,697 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

After we enabled autoSkipNonRecoverableData, the topic will skip the non-recoverable ledger which will lose some data, but the topic is able to load and continues to provide messaging service. This usually happens when multiple bookie replicas are corrupted, or the Ledger has been deleted This usually happens when multiple bookie copies are corrupted

But the Ledger used by the cursor is not able to be skipped even if autoSkipNonRecoverableData=true

Solution

Make the cursor can skip the non-recoverable Ledger if autoSkipNonRecoverableData=true

Alternatives

No

Anything else?

No

Are you willing to submit a PR?

  • I'm willing to submit a PR!

贡献者指南