You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/06/18 21:06:29 UTC

[GitHub] [pulsar] BewareMyPower opened a new issue #10975: Topic metadata not removed for partitioned topics

BewareMyPower opened a new issue #10975:
URL: https://github.com/apache/pulsar/issues/10975


   **Describe the bug**
   Pulsar enables `brokerDeleteInactiveTopicsEnabled` by default. However, for partitioned topics, if a topic was de
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Modify the `conf/standalone.conf`
   ```properties
   # How often to check for inactive topics
   brokerDeleteInactiveTopicsFrequencySeconds=10
   ```
   2. Start a standalone
   ```bash
   bin/pulsar standalone
   ```
   3. Create a partitioned topic
   ```bash
   bin/pulsar-admin topics create-partitioned-topic my-topic -p 3
   ```
   4. Produce a message, otherwise the topic won't be deleted (I'm not sure if this behavior is right)
   ```bash
   ./bin/pulsar-client produce -m hello my-topic
   ```
   5. Wait for at least 10 seconds, then list the topics
   ```bash
   $ ./bin/pulsar-admin topics list public/default
   $ ./bin/pulsar-admin topics create-partitioned-topic my-topic -p 3
   20:01:41.196 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/my-topic/partitions] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 409 Conflict
   Partitioned topic already exists
   
   Reason: Partitioned topic already exists
   ```
   
   **Expected behavior**
   After the partitioned topic is deleted, the metadata should be removed as well.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #10975: Topic metadata not removed for partitioned topics

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #10975:
URL: https://github.com/apache/pulsar/issues/10975#issuecomment-1058889211


   The issue had no activity for 30 days, mark with Stale label.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] BewareMyPower commented on issue #10975: Topic metadata not removed for partitioned topics

Posted by GitBox <gi...@apache.org>.
BewareMyPower commented on issue #10975:
URL: https://github.com/apache/pulsar/issues/10975#issuecomment-865802538


   This issue is resolved, we need to configure
   
   ```properties
   brokerDeleteInactivePartitionedTopicMetadataEnabled=true
   ```
   
   in `conf/standalone.conf`.
   
   https://github.com/apache/pulsar/pull/8442 fixed the bug while the default value of `brokerDeleteInactivePartitionedTopicMetadataEnabled` is false, which means the metadata won't be deleted automatically.
   
   BTW, the `conf/standalone.conf` didn't add this config.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org