File tree 2 files changed +10
-4
lines changed
pulsar-broker-common/src/main/java/org/apache/pulsar/broker
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1301,10 +1301,14 @@ replicatorPrefix=pulsar.repl
1301
1301
# due to missing ZooKeeper watch (disable with value 0)
1302
1302
replicationPolicyCheckDurationSeconds=600
1303
1303
1304
- # Default message retention time
1304
+ # Default message retention time.
1305
+ # The default value is 0, which means the data is removed after all the subscriptions are consumed.
1306
+ # Value less than 0 means messages never expire.
1305
1307
defaultRetentionTimeInMinutes=0
1306
1308
1307
- # Default retention size
1309
+ # Default retention size.
1310
+ # The default value is 0, which means the data is removed after all the subscriptions are consumed.
1311
+ # Value less than 0 means no infinite size quota.
1308
1312
defaultRetentionSizeInMB=0
1309
1313
1310
1314
# How often to check whether the connections are still alive
Original file line number Diff line number Diff line change @@ -2378,12 +2378,14 @@ public class ServiceConfiguration implements PulsarConfiguration {
2378
2378
private boolean replicationTlsEnabled = false ;
2379
2379
@ FieldContext (
2380
2380
category = CATEGORY_POLICIES ,
2381
- doc = "Default message retention time"
2381
+ doc = "Default message retention time. The default value is 0, which means the data is removed after all the "
2382
+ + "subscriptions are consumed. Value less than 0 means messages never expire."
2382
2383
)
2383
2384
private int defaultRetentionTimeInMinutes = 0 ;
2384
2385
@ FieldContext (
2385
2386
category = CATEGORY_POLICIES ,
2386
- doc = "Default retention size"
2387
+ doc = "Default retention size. The default value is 0, which means the data is removed after all the "
2388
+ + "subscriptions are consumed. Value less than 0 means no infinite size quota."
2387
2389
)
2388
2390
private int defaultRetentionSizeInMB = 0 ;
2389
2391
@ FieldContext (
You can’t perform that action at this time.
0 commit comments