Skip to content

[fix][broker]Replication is stuck because failed to read entries - #25625

Merged
poorbarcode merged 2 commits into
apache:masterfrom
poorbarcode:fix/replication_stuck
May 5, 2026
Merged

[fix][broker]Replication is stuck because failed to read entries#25625
poorbarcode merged 2 commits into
apache:masterfrom
poorbarcode:fix/replication_stuck

Conversation

@poorbarcode

Copy link
Copy Markdown
Contributor

Motivation

PersistentReplicator.acquirePermitsIfNotFetchingSchema() prevents multiple cursor.read from happening concurrently; it relies on whether the latest InFlightTask is done.

When PersistentReplicator receives an error when reading entries, the latest InFlightTask never completes, in other words, PersistentReplicator should mark the latest InFlightTask as done, but did not.

Modifications

  • Mark the latest InFlightTask as done if read entries failed.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

@poorbarcode poorbarcode added this to the 4.3.0 milestone Apr 30, 2026
@poorbarcode poorbarcode self-assigned this Apr 30, 2026
@poorbarcode
poorbarcode merged commit efc9299 into apache:master May 5, 2026
80 of 82 checks passed
poorbarcode added a commit that referenced this pull request May 6, 2026
poorbarcode added a commit that referenced this pull request May 6, 2026
poorbarcode added a commit to poorbarcode/pulsar that referenced this pull request May 6, 2026
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 27, 2026
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants