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/09/03 20:04:16 UTC

[GitHub] [pulsar] hozumit opened a new issue #11920: Topics occasionally remain unassigned. (Namespace is being unloaded, cannot add topic)

hozumit opened a new issue #11920:
URL: https://github.com/apache/pulsar/issues/11920


   **Describe the bug**
   I found that sometimes a topic remains unassigned after unloading.
   The following message is repeatedly appeared in broker log.
   
   ```
   08:28:28.538 [pulsar-io-4-15] WARN  org.apache.pulsar.broker.service.BrokerService - Namespace is being unloaded, cannot add topic persistent://mytenant/mynamespace/xxx-partition-37
   ```
   
   The following log is the beginning of unloading.
   ```
   09:57:13.634 [pulsar-web-40-7] INFO  org.apache.pulsar.broker.admin.impl.NamespacesBase - [null] Unloading namespace bundle mytenant/mynamespace/0x7ef23d0b_0x80000000
   09:57:13.725 [pulsar-web-40-7] INFO  org.apache.pulsar.broker.namespace.OwnedBundle - Disabling ownership: mytenant/mynamespace/0x7ef23d0b_0x80000000
   09:57:13.727 [pulsar-web-40-7] INFO  org.apache.pulsar.broker.service.BrokerService - [persistent://mytenant/mynamespace/xxx-partition-37] Unloading topic
   ```
   
   ```
   $ docker exec -it pulsar_broker bin/pulsar-admin topics stats "persistent://mytenant/mynamespace/xxx-partition-37"
   Can't find owner for topic persistent://mytenant/mynamespace/xxx-partition-37
   
   Reason: Can't find owner for topic persistent://mytenant/mynamespace/xxx-partition-37
   ```
   
   I saw this issue several times on different partitions of a topic, which have heavy loads.
   I have solved the problem by restarting a broker process(docker container).
   
   **To Reproduce**
   Steps to reproduce the behavior:
   Trigger unloading by command line( `bin/pulsar-admin namespaces unload mytenant/mynamespace` ) or broker load shedding.
   Topic unloading and assignment mostly works. I think that it fails when brokers are in relatively heavy loads.
   
   **Expected behavior**
   I don't know if the allocation failure is a bug or not, but brokers should at least try to re-allocate the topic as soon as possible after the allocation failure.
   I have solved the problem by restarting the broker process, so I think successive allocations will work.
   
   **Desktop (please complete the following information):**
    - OS: CentOS
    - Pulsar (broker and client): v2.8.0
   
   **Additional context**
   


-- 
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] hozumit commented on issue #11920: Topics occasionally remain unassigned. (Namespace is being unloaded, cannot add topic)

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


   @gaozhangmin v2.8.0. Thank you for sharing the pr. It seems to be the same problem. I will wait v2.8.1 release.


-- 
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] hozumit closed issue #11920: Topics occasionally remain unassigned. (Namespace is being unloaded, cannot add topic)

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


   


-- 
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] hozumit commented on issue #11920: Topics occasionally remain unassigned. (Namespace is being unloaded, cannot add topic)

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


   I've confirmed that the problem has been fixed in v2.8.1.


-- 
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] gaozhangmin commented on issue #11920: Topics occasionally remain unassigned. (Namespace is being unloaded, cannot add topic)

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


   which version you are using? this pr may fixed. #11310 


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