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/04/30 08:33:40 UTC

[GitHub] [pulsar] 315157973 opened a new pull request #10454: Fix CPU 100% when deleting namespace (#10337)

315157973 opened a new pull request #10454:
URL: https://github.com/apache/pulsar/pull/10454


   ### Motivation
   When deleting the namespace, the namespace Policies will be marked as deleted.
   This will trigger topic's `onPoliciesUpdate`
   However, in onPoliciesUpdate, the data of the Policies node on zk will be read, such as: `checkReplicationAndRetryOnFailure`
   Due to the deletion of the namespace, the zk node may no longer exist at this time.
   Failure to read data will trigger infinite retries.
   https://github.com/apache/pulsar/blob/e970c2947aff9231202ab72bdbad047d85c55633/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java#L1175-L1193
   
   If there are many topics, there will be a short-term CPU spike
   
   ![image](https://user-images.githubusercontent.com/9758905/115834541-ebc32480-a447-11eb-887a-95c4a3d1adf1.png)
   
   # Conflicts:
   #	pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java
   
   


-- 
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] merlimat merged pull request #10454: Fix CPU 100% when deleting namespace (#10337)

Posted by GitBox <gi...@apache.org>.
merlimat merged pull request #10454:
URL: https://github.com/apache/pulsar/pull/10454


   


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