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/05 08:17:15 UTC

[GitHub] [pulsar] daniwb opened a new issue #14567: Retention Policy is resetted when restarting Pulsar-Broker in a Cluster

daniwb opened a new issue #14567:
URL: https://github.com/apache/pulsar/issues/14567


   **Describe the bug**
   When Pulsar-Broker is restarted in a Cluster, the Retention Policy will be resetted for public/default
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Set Retention Policy:
   bin/pulsar-admin namespaces set-retention public/default --size 11G --time 1h
   
   2. Show Retention Policy:
   bin/pulsar-admin namespaces policies public/default
   ...
     "retention_policies" : {
       "retentionTimeInMinutes" : 60,
       "retentionSizeInMB" : 11264
     },
   ...
   
   3. Restart Pulsar Broker
   bin/pulsar-daemon stop broker
   bin/pulsar-daemon start broker
   
   4. Check Policies again
   bin/pulsar-admin namespaces policies public/default
   ...
     "retention_policies" : {
       "retentionTimeInMinutes" : 4320,
       "retentionSizeInMB" : -1
     }, 
   ...
   **Expected behavior**
   The retention policy should not be changed at all.
   
     "retention_policies" : {
       "retentionTimeInMinutes" : 60,
       "retentionSizeInMB" : 11264
     },
   
   
   **Screenshots**
   
   **Desktop (please complete the following information):**
   CentOS 7
   Pulsar 2.9.1
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
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] eolivelli commented on issue #14567: Retention Policy is resetted when restarting Pulsar-Broker in a Cluster

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


   Are you using Pulsar standalone?


-- 
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] mattisonchao commented on issue #14567: Retention Policy is resetted when restarting Pulsar-Broker in a Cluster

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


   Could you provide the broker logs when you set the policy and get the policy?


-- 
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] codelipenghui commented on issue #14567: Retention Policy is resetted when restarting Pulsar-Broker in a Cluster

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


   @daniwb I think there are other operations that changed the configuration, from your steps, the `retentionTimeInMinutes ` change to 4320 and `retentionSizeInMB ` change to `-1`, 4320 is not a default value for Pulsar, so Pulsar will not set to 4320, maybe someone changed during the broker restart.


-- 
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] daniwb commented on issue #14567: Retention Policy is resetted when restarting Pulsar-Broker in a Cluster

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


   Thanks for your help! I found out, it was **KoP (Kafka on Pulsar)**.
   In the logs I can see, that after Kafka on Pulsar starts, it sends the Query to change the default.
   
   @eolivelli We have a Cluster up and running with Centos 7.


-- 
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] daniwb closed issue #14567: Retention Policy is resetted when restarting Pulsar-Broker in a Cluster

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


   


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