You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "luky116 (via GitHub)" <gi...@apache.org> on 2023/07/26 13:02:31 UTC

[GitHub] [pulsar] luky116 opened a new issue, #20886: [Bug] ns-isolation-policy takes a long time take effect

luky116 opened a new issue, #20886:
URL: https://github.com/apache/pulsar/issues/20886

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   3.0.0
   
   ### Minimal reproduce step
   
   I want to set a isolation policy for a namespace, i execyted ns-isolation-policy command, but i can get a error when  i execute partitioned-lookup command, refer to the figure below for details.
   
   ![image](https://github.com/apache/pulsar/assets/38887641/95ccd9d1-6f21-4335-bd1e-adcb38734108)
   
   i tried to product message to this topic, it also cann't works, and give a error.
   ![image](https://github.com/apache/pulsar/assets/38887641/9e344814-32cb-4366-9d43-5ef931d24895)
   
   
   
   ### What did you expect to see?
   
   The  topic in the namespace  belongs can be assigned to the broker on port 8080
   
   ### What did you see instead?
   
   Refer to the screenshot above for the problem
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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.apache.org

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


Re: [I] [Bug] ns-isolation-policy takes a long time take effect [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on issue #20886:
URL: https://github.com/apache/pulsar/issues/20886#issuecomment-6386016122

   Thanks @luky116 for the report. The policy listed the brokers with their port (`host:8080`), and placement used to match policy entries only against the broker host, so no broker matched and topics in the namespace could not be assigned. This was fixed by #26829 (the same problem as #15795): an entry that contains `:` is now also matched against the broker id `host:port`, as shown by `pulsar-admin brokers list`, both in placement and in `ns-isolation-policy brokers`. Host-only entries work as before.
   
   I'm closing this as fixed. The fix is in master and has been backported to the 4.0, 4.2 and 5.0 branches. If it still happens on a release that has the fix, please reopen with the policy and `pulsar-admin brokers list` output.


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


Re: [I] [Bug] ns-isolation-policy takes a long time take effect [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed issue #20886: [Bug] ns-isolation-policy takes a long time take effect
URL: https://github.com/apache/pulsar/issues/20886


-- 
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] github-actions[bot] commented on issue #20886: [Bug] ns-isolation-policy takes a long time take effect

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20886:
URL: https://github.com/apache/pulsar/issues/20886#issuecomment-1701999131

   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] Technoboy- commented on issue #20886: [Bug] ns-isolation-policy takes a long time take effect

Posted by "Technoboy- (via GitHub)" <gi...@apache.org>.
Technoboy- commented on issue #20886:
URL: https://github.com/apache/pulsar/issues/20886#issuecomment-1659455279

   The `primary` and `secondary` should better be ip form (no port).  In your reproduce step, it won't find any matched broker. 
   See the detailed implementations https://github.com/apache/pulsar/blob/001b134653b89103089b1429b9058d987cd0485c/pulsar-common/src/main/java/org/apache/pulsar/common/policies/impl/NamespaceIsolationPolicyImpl.java#L52-L60
   
   https://github.com/apache/pulsar/blob/001b134653b89103089b1429b9058d987cd0485c/pulsar-common/src/main/java/org/apache/pulsar/common/policies/impl/NamespaceIsolationPolicyImpl.java#L103-L110


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