ConcurrencyPractitioner edited a comment on issue #1459: unsubscribe doesn't work if bookkeeper is outage URL: https://github.com/apache/pulsar/issues/1459#issuecomment-449590066 Hi, I changed the configs as follows: diff --git a/conf/bookkeeper.conf b/conf/bookkeeper.conf index dedb7d88d..0150d3bcc 100644 --- a/conf/bookkeeper.conf +++ b/conf/bookkeeper.conf @@ -535,7 +535,7 @@ readOnlyModeEnabled=true # will turn to readonly mode if 'readOnlyModeEnabled=true' is set, else it will # shutdown. # Valid values should be in between 0 and 1 (exclusive). -diskUsageThreshold=0.95 +diskUsageThreshold=0.000000001 # The disk free space low water mark threshold. # Disk is considered full when usage threshold is exceeded. diff --git a/conf/standalone.conf b/conf/standalone.conf index cc8f56417..3ead483c6 100644 --- a/conf/standalone.conf +++ b/conf/standalone.conf @@ -476,7 +476,7 @@ journalSyncData=false # will turn to readonly mode if 'readOnlyModeEnabled=true' is set, else it will # shutdown. # Valid values should be in between 0 and 1 (exclusive). -diskUsageThreshold=0.99 +diskUsageThreshold=0.000001 # The disk free space low water mark threshold. # Disk is considered full when usage threshold is exceeded. @@ -484,7 +484,7 @@ diskUsageThreshold=0.99 # This prevents it from going back and forth between these states frequently # when concurrent writes and compaction are happening. This also prevent bookie from # switching frequently between read-only and read-writes states in the same cases. -diskUsageWarnThreshold=0.99 +diskUsageWarnThreshold=0.0000004 # Whether the bookie allowed to use a loopback interface as its primary # interface(i.e. the interface it uses to establish its identity)? diff --git a/deployment/terraform-ansible/templates/bookkeeper.conf b/deployment/terraform-ansible/templates/bookkeeper.conf index 9e7fcc9d7..df6f95de9 100644 --- a/deployment/terraform-ansible/templates/bookkeeper.conf +++ b/deployment/terraform-ansible/templates/bookkeeper.conf @@ -535,7 +535,7 @@ readOnlyModeEnabled=true # will turn to readonly mode if 'readOnlyModeEnabled=true' is set, else it will # shutdown. # Valid values should be in between 0 and 1 (exclusive). -diskUsageThreshold=0.95 +diskUsageThreshold=0.0000001 # The disk free space low water mark threshold. # Disk is considered full when usage threshold is exceeded. diff --git a/pulsar-broker/src/test/resources/configurations/pulsar_broker_test.conf b/pulsar-broker/src/test/resources/configurations/pulsar_broker_test.conf index 803418590..55400443e 100644 --- a/pulsar-broker/src/test/resources/configurations/pulsar_broker_test.conf +++ b/pulsar-broker/src/test/resources/configurations/pulsar_broker_test.conf @@ -17,6 +17,9 @@ # under the License. # +diskUsageThreshold=0.000001 +diskUsageWarnThreshold=0.00001 +diskUsageLwmThreshold=0.00001 applicationName="pulsar_broker" zookeeperServers="localhost" configurationStoreServers="localhost" And I ran the following test: https://github.com/apache/pulsar/blob/master/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java#L1265 I wasn't able to replicate the error. Was this the right approach?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
