You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/16 10:25:09 UTC

[GitHub] [pulsar] mnit016 created a discussion: Why pulsar retention quota must exceed configured backlog quota

GitHub user mnit016 created a discussion: Why pulsar retention quota must exceed configured backlog quota

Hello everyone, 

I'm new to Pulsar, recently I get into a problem when configure the backlog/retention quota for namespace.

The problem:
retention: {time: -1, size: 10M} => then I can set backlog quota as much as I want.
But if retention: {time: 1, size: 10M} => when I set backlog quota exceed 10M, it said "Backlog Quota exceeds configured Retention quota for namespace. Please increase retention quota and retry", I have no idea why.

Could someone please help to explain for me?
Thanks


GitHub link: https://github.com/apache/pulsar/discussions/17697

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] Jason918 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Posted by GitBox <gi...@apache.org>.
GitHub user Jason918 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

> Hello @Jason918 , @michaeljmarshall , but I still confused, could you please explain for me why backlog quota couldn't exceed the retention? Is there any risk if we set backlog quota larger than retention?

Messages will be deleted if they meet the constrains of retention policy. So if backlog quota is larger than retention, it just won't take effect.

GitHub link: https://github.com/apache/pulsar/discussions/17697#discussioncomment-4094535

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] mnit016 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Posted by GitBox <gi...@apache.org>.
GitHub user mnit016 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Hello @Jason918 , @michaeljmarshall , but I still confused, could you please explain for me why backlog quota couldn't exceed the retention? Is there any risk if we set backlog quota larger than retention?

GitHub link: https://github.com/apache/pulsar/discussions/17697#discussioncomment-4082549

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] michaeljmarshall added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Posted by GitBox <gi...@apache.org>.
GitHub user michaeljmarshall added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

@mnit016 - are you willing to create a GitHub issue for this bug? Thanks!

GitHub link: https://github.com/apache/pulsar/discussions/17697#discussioncomment-3672611

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] Jason918 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Posted by GitBox <gi...@apache.org>.
GitHub user Jason918 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

I have pushed a fix https://github.com/apache/pulsar/pull/17706

GitHub link: https://github.com/apache/pulsar/discussions/17697#discussioncomment-3672730

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] michaeljmarshall added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Posted by GitBox <gi...@apache.org>.
GitHub user michaeljmarshall added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

I just discovered the "create issue from discussion" button. I created an issue for this discussion.

GitHub link: https://github.com/apache/pulsar/discussions/17697#discussioncomment-3672723

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] Jason918 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

Posted by GitBox <gi...@apache.org>.
GitHub user Jason918 added a comment to the discussion: Why pulsar retention quota must exceed configured backlog quota

> retention: {time: -1, size: 10M} => then I can set backlog quota as much as I want.

This seems to be a bug. It's introduced in #10401 since v2.8.0

GitHub link: https://github.com/apache/pulsar/discussions/17697#discussioncomment-3672520

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org