Skip to content

Commit

Permalink
Add diskUsageThreshold to 0.99 (apache#5970)
Browse files Browse the repository at this point in the history
### Motivation

The current GitHub action test will show that the disk space exceeds 95%, and then the bookie will detect that bookie exits, so fix this problem.

![image](https://user-images.githubusercontent.com/1907867/71616693-8748da00-2bf2-11ea-82f2-e54eda012136.png)


### Modifications

* Configuration parameter disUsageThreshold is 0.99 to prevent bookie exit.

### Verifying this change

Integration test pass
  • Loading branch information
tuteng authored and sijie committed Jan 1, 2020
1 parent 38839b6 commit 757d971
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.apache.pulsar.tests.integration;

import lombok.Cleanup;
import org.apache.pulsar.client.api.Consumer;
import org.apache.pulsar.client.api.Message;
import org.apache.pulsar.client.api.Producer;
Expand All @@ -44,6 +45,8 @@ public void setup(){

@Test
public void checkMessages() throws PulsarClientException {

@Cleanup
PulsarClient client = PulsarClient.builder()
.serviceUrl(pulsarContainer.getPlainTextPulsarBrokerUrl())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.apache.pulsar.tests.integration;

import lombok.Cleanup;
import org.apache.pulsar.client.api.Consumer;
import org.apache.pulsar.client.api.Message;
import org.apache.pulsar.client.api.Producer;
Expand All @@ -44,6 +45,8 @@ public void setup(){

@Test
public void checkMessages() throws PulsarClientException {

@Cleanup
PulsarClient client = PulsarClient.builder()
.serviceUrl(pulsarContainer.getPlainTextPulsarBrokerUrl())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ private PulsarCluster(PulsarClusterSpec spec) {
.withEnv("journalSyncData", "false")
.withEnv("journalMaxGroupWaitMSec", "0")
.withEnv("clusterName", clusterName)
.withEnv("diskUsageThreshold", "0.99")
)
);

Expand Down

0 comments on commit 757d971

Please sign in to comment.