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/08/12 10:45:14 UTC

[GitHub] [pulsar] abhilashmandaliya opened a new issue #11647: Inconsistency in backlog quota configuration

abhilashmandaliya opened a new issue #11647:
URL: https://github.com/apache/pulsar/issues/11647


   **Describe the bug**
   A backlog quota in the broker is configured differently from the broker's configuration file than the admin CLI. A configuration file accepts the limit in GB only as [backlogQuotaDefaultLimitGB](https://github.com/apache/pulsar/blob/402a88dae680c825b548f10e9aa5eb39d12b932b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java#L342) param whereas you can [update it from the CLI](https://github.com/apache/pulsar/blob/402a88dae680c825b548f10e9aa5eb39d12b932b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java#L1089) in KB, MB, GB and TB which is parsed by the [common code](https://github.com/apache/pulsar/blob/402a88dae680c825b548f10e9aa5eb39d12b932b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CliCommand.java#L81). Also, the parsing code [assumes](https://github.com/apache/pulsar/blob/402a88dae680c825b548f10e9aa5eb39d12b932b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CliCommand.java#L101
 ) that the value is numeric if it is not any of the KB, MB, GB and TB which may cause NumberFormatException at the run time.
   
   **Expected behavior**
   Broker file should also accept it in KB, MB, GB and TB. In the default case of parsing, we should check for the numeric value and throw some appropriate Pulsar Exception if the value is non-numeric.
   
   I can take this up if it looks legitimate.


-- 
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] liangyuanpeng edited a comment on issue #11647: Inconsistency in backlog quota configuration

Posted by GitBox <gi...@apache.org>.
liangyuanpeng edited a comment on issue #11647:
URL: https://github.com/apache/pulsar/issues/11647#issuecomment-901262719


   Seems like we support it now. (master)


-- 
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] rdhabalia closed issue #11647: Inconsistency in backlog quota configuration

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


   


-- 
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] liangyuanpeng commented on issue #11647: Inconsistency in backlog quota configuration

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


   Seems like we support now. (master)


-- 
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] abhilashmandaliya commented on issue #11647: Inconsistency in backlog quota configuration

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


   @eolivelli @lhotari PTAL


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