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

Allow to delete topics that are failing to recover #7131

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Jun 1, 2020

Motivation

If a topic is failing to recover, it's currently practically impossible to force the deletion, other than going to delete the metadata from ZK directly.

The failure to recover can happen when data for the last ledger is missing and the ledger fails causing the topic to be offline. This could be due to manual error (eg: increasing and decreasing the bookie replicas without waiting to auto-recovery).

If we want to delete a topic and move on, we shouldn't fail if the data itself is corrupted/missing.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jun 1, 2020
@merlimat merlimat added this to the 2.6.0 milestone Jun 1, 2020
@merlimat merlimat self-assigned this Jun 1, 2020
@sijie sijie merged commit 35b67b0 into apache:master Jun 2, 2020
@Saswatibhoi
Copy link

Will the topic deletion work on geo-replicated topics too? Because at this moment, for the namespaces that are geo-replicated, the topics doesn't get deleted even if we try disabling the replication by set-clusters.

@merlimat merlimat deleted the delete-topics-errors branch June 4, 2020 17:16
@merlimat
Copy link
Contributor Author

merlimat commented Jun 4, 2020

@Saswatibhoi that is a different issue. For geo-replicated topics, typically the suggestion is to stop using them and unsubscribe, leaving the topic to get auto-deleted.

Surely, there could be an improvement to perform deletion on geo-replicated topics.

Huanli-Meng pushed a commit to Huanli-Meng/pulsar that referenced this pull request Jun 12, 2020
### Motivation

If a topic is failing to recover, it's currently practically impossible to force the deletion, other than going to delete the metadata from ZK directly.

The failure to recover can happen when data for the last ledger is missing and the ledger fails causing the topic to be offline. This could be due to manual error (eg: increasing and decreasing the bookie replicas without waiting to auto-recovery).

If we want to delete a topic and move on, we shouldn't fail if the data itself is corrupted/missing.
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
### Motivation

If a topic is failing to recover, it's currently practically impossible to force the deletion, other than going to delete the metadata from ZK directly.

The failure to recover can happen when data for the last ledger is missing and the ledger fails causing the topic to be offline. This could be due to manual error (eg: increasing and decreasing the bookie replicas without waiting to auto-recovery).

If we want to delete a topic and move on, we shouldn't fail if the data itself is corrupted/missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants