GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug] Java Exclusive and Failover consumers skip messages from partitions added after redelivery · Issue #27694 · apache/pulsar

[Bug] Java Exclusive and Failover consumers skip messages from partitions added after redelivery #27694

New issue
Copy link
New issue
Copy link
Open
#27727
Jeremiah-D/pulsar
#1
Jeremiah-D/pulsar#1
Open
[Bug] Java Exclusive and Failover consumers skip messages from partitions added after redelivery#27694
#27727
Jeremiah-D/pulsar
#1
Copy link

Description

@void-ptr974
void-ptr974
opened on Nov 22, 2026
Issue body actions

Issue description

After a Java consumer calls redeliverUnacknowledgedMessages() on a partitioned topic, it can subscribe successfully to a newly added partition and still time out receiving messages from it. This affects Exclusive and Failover subscriptions. Messages from the original partition continue to reach the application.

Steps to reproduce

  1. Create a topic with one partition. Subscribe to the base topic with a Java Exclusive consumer and enable automatic partition updates.
  2. Call redeliverUnacknowledgedMessages(). Publish a marker to partition 0, receive it on the parent consumer, and acknowledge it.
  3. Expand the topic to two partitions. Wait until broker stats for the physical topic <topic>-partition-1 show a connected consumer on the same subscription.
  4. Publish a message directly to <topic>-partition-1, then call receive(10, TimeUnit.SECONDS) on the parent consumer.

The application should receive the message from partition 1. Instead, the receive can time out even though the broker shows the consumer as connected.

Why it happens

Full redelivery advances the parent consumer's epoch. A partition consumer created afterwards subscribes with its own initial epoch of 0. The broker sends the new partition's messages with that epoch, and the parent discards them as stale. Another full redelivery advances both epochs together, so the gap persists. Parent redelivery · Child subscribe command · Epoch check

Environment and related review

Apache Pulsar Java client, master at 3c6de6548e0. This also affects a partition that connects after a failed subscription is retried. Thanks to @lhotari for identifying the epoch mismatch during the review of #27452. Original review discussion

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.