Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][ml]Skip deleting cursor if it already was deleted when calling unsubscribe #24098

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Mar 19, 2025

Motivation

We encountered an issue after trying to delete a topic multiple times, and all deletions failed, and there are some bundle rebalnces. After checking the heap dump. We found a subscription that relates to a delete cursor.

Issue:

  • The subscription has a cursor
  • but the cursor has been removed from the managed ledger

Screenshot 2025-03-26 at 16 18 10
Screenshot 2025-03-26 at 16 20 06

Modifications

  • Skip deleting the cursor if it has already was deleted

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

import org.apache.pulsar.client.api.Producer;
import org.apache.pulsar.client.api.ProducerConsumerBase;
import org.apache.pulsar.client.api.Schema;
import org.testcontainers.shaded.org.awaitility.Awaitility;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't use shaded Awaitility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved

@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

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