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 2020/11/27 11:08:58 UTC

[GitHub] [pulsar] BewareMyPower opened a new issue #8731: Partitioned topics was not deleted completely

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


   **Describe the bug**
   
   After a partitioned topic was automatically deleted because `brokerDeleteInactiveTopicsEnabled=true`, the topic's metadata was not deleted but we cannot get the topic's info and also cannot create the same topic.
   
   The current state is:
   
   ```bash
   # As you see, there's no topics
   $ curl -L http://localhost:8080/admin/v2/persistent/public/default; echo
   []
   # However, we can query the topic's metadata
   $ curl -L http://localhost:8080/admin/v2/persistent/public/default/_schemas/partitions
   {"partitions":1}
   # Also, we cannot create the same topic
   $ curl -L http://localhost:8080/admin/v2/persistent/public/default/_schemas/partitions -X PUT -H 'Content-Type: application/json' -d 1
   {"reason":"Partitioned topic already exists"}
   # The stats is also available
   $ curl -L http://localhost:8080/admin/v2/persistent/public/default/_schemas/partitioned-stats
   {"msgRateIn":0.0,"msgThroughputIn":0.0,"msgRateOut":0.0,"msgThroughputOut":0.0,"bytesInCounter":0,"msgInCounter":0,"bytesOutCounter":0,"msgOutCounter":0,"averageMsgSize":0.0,"msgChunkPublished":false,"storageSize":0,"backlogSize":0,"publishers":[],"subscriptions":{},"replication":{},"metadata":{"partitions":1},"partitions":{"persistent://public/default/_schemas":{"msgRateIn":0.0,"msgThroughputIn":0.0,"msgRateOut":0.0,"msgThroughputOut":0.0,"bytesInCounter":0,"msgInCounter":0,"bytesOutCounter":0,"msgOutCounter":0,"averageMsgSize":0.0,"msgChunkPublished":false,"storageSize":0,"backlogSize":0,"publishers":[],"subscriptions":{},"replication":{}}}}
   ```
   
   And before the topic was deleted, the stats is different because I have sent a message:
   
   ```json
   {
     "msgRateIn": 0.0,
     "msgThroughputIn": 0.0,
     "msgRateOut": 0.0,
     "msgThroughputOut": 0.0,
     "bytesInCounter": 186,
     "msgInCounter": 1,
     "bytesOutCounter": 0,
     "msgOutCounter": 0,
     "averageMsgSize": 0.0,
     "msgChunkPublished": false,
     "storageSize": 186,
     "backlogSize": 0,
     "publishers": [
       
     ],
     "subscriptions": {
       
     },
     "replication": {
       
     },
     "metadata": {
       "partitions": 1
     },
     "partitions": {
       "persistent://public/default/_schemas-partition-0": {
         "msgRateIn": 0.0,
         "msgThroughputIn": 0.0,
         "msgRateOut": 0.0,
         "msgThroughputOut": 0.0,
         "bytesInCounter": 186,
         "msgInCounter": 1,
         "bytesOutCounter": 0,
         "msgOutCounter": 0,
         "averageMsgSize": 0.0,
         "msgChunkPublished": false,
         "storageSize": 186,
         "backlogSize": 0,
         "publishers": [
           
         ],
         "subscriptions": {
           
         },
         "replication": {
           
         },
         "deduplicationStatus": "Disabled"
       }
     }
   }
   ```
   
   **To Reproduce**
   It happened when I run KoP with Pulsar 2.6.2 and can be reproduced every time
   
   Steps to reproduce the behavior:
   1. Use `PulsarAdmin` to create a topic;
   2. Create a `KafkaProducer` to send a message.
   
   **TODO: The reproduce procedure by pure Pulsar is to be added.**
   
   **Expected behavior**
   The partitioned topic should be deleted completely, which means the related metadata shouldn't be queried and we can recreate the topic again.
   


----------------------------------------------------------------
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] BewareMyPower commented on issue #8731: [Pulsar 2.6.2] Partitioned topics was not deleted completely

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


   > #8442
   > Has this pr fixed the problem?
   
   Yeah, thx for your help.


----------------------------------------------------------------
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] 315157973 commented on issue #8731: [Pulsar 2.6.2] Partitioned topics was not deleted completely

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


   https://github.com/apache/pulsar/pull/8442
   Has this pr fixed the problem?


----------------------------------------------------------------
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] BewareMyPower closed issue #8731: [Pulsar 2.6.2] Partitioned topics was not deleted completely

Posted by GitBox <gi...@apache.org>.
BewareMyPower closed issue #8731:
URL: https://github.com/apache/pulsar/issues/8731


   


----------------------------------------------------------------
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