Skip to content

[Bug] when open batchIndexAckEnabled and acknowledgmentAtBatchIndexLevelEnabled ack wrong #23840

Open
@liusx73

Description

@liusx73

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

4.0.1

Minimal reproduce step

  1. set batchIndexAckEnabled=true in client
  2. set acknowledgmentAtBatchIndexLevelEnabled=true in server
  3. set a counter, ack count % 2 == 1, nack other;
  4. send message
  5. after consuming a few more, force it to stop
  6. reconsuming

What did you expect to see?

Denied and unconsumed items can be consumed again. Confirmed, no need to consume again

What did you see instead?

screenshot_2025-01-10_21-00-20
screenshot_2025-01-10_21-02-09
the keyword 'a33' 'a35' 'a37' 'a39' 'a41' 'a44' 'a46' 'a48' is missing

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions