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 2022/03/31 08:31:16 UTC

[GitHub] [pulsar] 1559924775 opened a new issue #14969: topic policys not effective

1559924775 opened a new issue #14969:
URL: https://github.com/apache/pulsar/issues/14969


   **Describe the bug**
   Not allowed to set/get topic policy for a partition
   <img width="799" alt="3f1d7617925a98372fa5bebf253d250c" src="https://user-images.githubusercontent.com/35036009/161012016-2510eebe-c497-4d47-be88-fa8cea290704.png">
   
   But use the partition name to get the policy
   <img width="1038" alt="4c424a9a7307ee327e0802a59f50531f" src="https://user-images.githubusercontent.com/35036009/161012269-cd7aa8a8-3bef-4034-b177-6c1c4cee69c9.png">
   


-- 
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] Technoboy- closed issue #14969: topic policys not effective

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


   


-- 
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] Technoboy- commented on issue #14969: topic policys not effective

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


   > Should be revised to: TopicName cloneTopicName = topicName; if (topicName.isPartitioned()) { cloneTopicName = TopicName.get(topicName.getPartitionedTopicName()); }
   
   Ah , this is broker side internal to update topic policy. it's ok, because it registers as `brokerService.getPulsar().getTopicPoliciesService()
                       .registerListener(TopicName.getPartitionedTopicName(topic), this)`;
   But it doesn't allow user to set different partition with different policies.


-- 
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] 1559924775 commented on issue #14969: topic policys not effective

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


   Should be revised to:
   TopicName cloneTopicName = topicName;
           if (topicName.isPartitioned()) {
               cloneTopicName = TopicName.get(topicName.getPartitionedTopicName());
           }


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