This commit is contained in:
Luke Chen 2024-05-08 13:06:53 +08:00
parent 3c25e02524
commit 3dab6159e8
2 changed files with 1 additions and 2 deletions

View File

@ -1574,6 +1574,7 @@ class UnifiedLog(@volatile var logStartOffset: Long,
private def deleteRetentionSizeBreachedSegments(): Int = {
val retentionSize: Long = localRetentionSize(config, remoteLogEnabled())
System.err.print(s"$name $size ")
if (retentionSize < 0 || size < retentionSize) return 0
var diff = size - retentionSize
def shouldDelete(segment: LogSegment, nextSegmentOpt: Option[LogSegment]): Boolean = {

View File

@ -88,7 +88,6 @@ public abstract class ShutdownableThread extends Thread {
synchronized (this) {
if (isRunning()) {
log.info("Shutting down");
System.err.println(logPrefix + " shutting down");
shutdownInitiated.countDown();
if (isInterruptible)
interrupt();
@ -108,7 +107,6 @@ public abstract class ShutdownableThread extends Thread {
if (isStarted)
shutdownComplete.await();
log.info("Shutdown completed");
System.err.println(logPrefix + " shutted down");
}
}