gaozhangmin opened a new pull request, #4018:
URL: https://github.com/apache/bookkeeper/pull/4018
### Motivation
This code snippet implements disk check event trigger if disk usage is
above warnThreshold, either marjor is suspend or forcegc is enabled.
There exists a case that if usgae descends to warn threshold, the gc thread
is suspend forever. until it goes to full and becomes writable again.
```
@Override
public void diskAlmostFull(File disk) {
if (gcThread.isForceGCAllowWhenNoSpace) {
gcThread.enableForceGC();
} else {
gcThread.suspendMajorGC();
}
}
```
### Changes
Add diskUnderWarnThreshold check event to prevent gcThread supended forever
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]