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] Shared subscription throughput can remain 30–40% lower after frequent consumer reconnects · Issue #26288 · apache/pulsar

[Bug] Shared subscription throughput can remain 30–40% lower after frequent consumer reconnects #26288

New issue
Copy link
New issue
Copy link
Closed
#26289
Closed
[Bug] Shared subscription throughput can remain 30–40% lower after frequent consumer reconnects#26288
#26289
Copy link

Description

@void-ptr974
void-ptr974
opened on Aug 7, 2026
Issue body actions

Search before reporting

  • 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.

User environment

  • Pulsar 5.0.0-M1-SNAPSHOT, built from a recent master snapshot
  • Pulsar standalone on Linux x86_64 with OpenJDK 21
  • Java client built from the same source snapshot

Issue Description

For a Shared subscription with many consumers, frequently connecting and disconnecting additional consumers can leave the subscription with significantly lower throughput after the reconnect activity stops.

The test compares two subscriptions on the same topic:

  • Subscription without reconnects: 1,000 long-lived consumers and no additional consumer activity.
  • Subscription with reconnects: 1,000 long-lived consumers, plus 1,600 temporary consumers that connect and disconnect during the test.

The throughput is expected to recover after the temporary consumers disconnect. Instead, the subscription with reconnects can remain about 30–40% slower while the producer and the original consumers continue running normally.

Error messages

No error or exception was observed. The problem appears as a sustained throughput drop.

Reproducing the issue

  1. Continuously publish about 50,000 messages per second to a persistent, non-partitioned topic.
  2. Create the two Shared subscriptions described above and start their long-lived consumers.
  3. On the subscription with reconnects only, rapidly create and close 1,600 additional consumers in concurrent waves.
  4. After the temporary consumers disconnect, keep the producer and both long-lived consumer groups running and compare their throughput.

The producer, long-lived consumer groups, and reconnect workload run in separate JVM processes.

Additional information

The test was repeated eight times with fresh standalone state. Before the reconnect workload, the two subscriptions had nearly identical throughput. The table shows their throughput after all temporary consumers disconnected:

Run Without reconnects With reconnects Difference
1 19,430 msg/s 18,859 msg/s 2.9% lower
2 21,132 msg/s 14,001 msg/s 33.7% lower
3 20,913 msg/s 12,646 msg/s 39.5% lower
4 28,342 msg/s 28,351 msg/s Similar
5 19,251 msg/s 18,273 msg/s 5.1% lower
6 21,297 msg/s 14,428 msg/s 32.3% lower
7 19,728 msg/s 19,691 msg/s 0.2% lower
8 22,444 msg/s 15,229 msg/s 32.1% lower

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. void-ptr974
    changed the title [-][Bug] Shared subscription throughput can persistently drop by 30-40% after frequent consumer reconnects[/-] [+][Bug] Shared subscription throughput can remain 30–40% lower after frequent consumer reconnects[/+] on Aug 8, 2026
  2. lhotari
    closed this as completedin #26289on Sep 10, 2026
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.