mirror of https://github.com/apache/kafka.git
test
This commit is contained in:
parent
3c25e02524
commit
3dab6159e8
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue