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/25 01:14:16 UTC

[GitHub] [pulsar] glcrazier opened a new issue #12185: ratePeriodInSecond in DispatchRate should be non-positive

glcrazier opened a new issue #12185:
URL: https://github.com/apache/pulsar/issues/12185


   **Is your enhancement request related to a problem? Please describe.**
   If set ratePeriodInSecond of DispatchRate as 0 when setting namespace policy, the admin api indicates success. However, successive operations like creating subscriptions under this namespace would fail and the caller doesn't know why due to improper settings. 
   
   **Describe the solution you'd like**
   When calling admin api, check ratePeriodInSecond value if it's non-positive, failed the calling to let the caller try correct values.
   
   


-- 
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] glcrazier commented on issue #12185: ratePeriodInSecond in DispatchRate should be non-positive

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


   > > **Is your enhancement request related to a problem? Please describe.**
   > > If set ratePeriodInSecond of DispatchRate as 0 when setting namespace policy, the admin api indicates success. However, successive operations like creating subscriptions under this namespace would fail and the caller doesn't know why due to improper settings.
   > > **Describe the solution you'd like**
   > > When calling admin api, check ratePeriodInSecond value if it's non-positive, failed the calling to let the caller try correct values.
   > 
   > How do you use it, can you tell me the steps?
   
   I called like the following:           
   ```
               adminClient.namespaces().setDispatchRate("namespace",
                       new DispatchRate(configuration.getDispatchThrottlingRateInMsg(),
                               configuration.getDispatchThrottlingRateInByte(),
                               0));
   
   ```
   I accidentally created DispatchRate object with third parameters as 0. Then subsequent operations like creating subscription would fail.
   


-- 
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] hellomyboy commented on issue #12185: ratePeriodInSecond in DispatchRate should be non-positive

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


   > **Is your enhancement request related to a problem? Please describe.**
   > If set ratePeriodInSecond of DispatchRate as 0 when setting namespace policy, the admin api indicates success. However, successive operations like creating subscriptions under this namespace would fail and the caller doesn't know why due to improper settings.
   > 
   > **Describe the solution you'd like**
   > When calling admin api, check ratePeriodInSecond value if it's non-positive, failed the calling to let the caller try correct values.
   
   How do you use it, can you tell me the steps?


-- 
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 #12185: ratePeriodInSecond in DispatchRate should be non-positive

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #12185:
URL: https://github.com/apache/pulsar/issues/12185#issuecomment-1054902688


   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] hellomyboy commented on issue #12185: ratePeriodInSecond in DispatchRate should be non-positive

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


   /assign


-- 
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] hellomyboy commented on issue #12185: ratePeriodInSecond in DispatchRate should be non-positive

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


   > **Is your enhancement request related to a problem? Please describe.**
   > If set ratePeriodInSecond of DispatchRate as 0 when setting namespace policy, the admin api indicates success. However, successive operations like creating subscriptions under this namespace would fail and the caller doesn't know why due to improper settings.
   > 
   > **Describe the solution you'd like**
   > When calling admin api, check ratePeriodInSecond value if it's non-positive, failed the calling to let the caller try correct values.
   
   How do you use it, can you tell me the steps?


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