Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

[BUG] the topic can not remove after the producer and consumer finished #229

Closed

Description

@dockerzhang

Describe the bug
the topic can not remove after the producer and consumer finished.

To Reproduce
1, create a partitioned topic
pulsar-admin persistent create-partitioned-topic t-kop/ns-kop/lookup2 --partitions 30
2, produce 100 message using the created topic
3, consume all produced messages.
4, delete the used topic lookup2 with pulsar command
./bin/pulsar-admin topics delete-partitioned-topic t-kop/ns-kop/lookup2
5, See error:
Failed to perform http delete request: javax.ws.rs.ClientErrorException: HTTP 412 Precondition Failed Topic has active producers/subscriptions

Expected behavior
the topic can remove after the producer and consumer finished.

Screenshots
image

Activity

  1. BewareMyPower commented on Nov 12, 2020

    @BewareMyPower
    Contributor

    Yeah, it's an existed issue for a long time because the OffsetAcker holds consumers for acknowledgement. I think there's a better way to do it.

  2. jiazhai commented on Dec 1, 2020

    @jiazhai
    Contributor

    added comments in the PR

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions