@ -93,7 +91,7 @@ case class LogConfig(val segmentSize: Int = Defaults.SegmentSize,
@@ -93,7 +91,7 @@ case class LogConfig(val segmentSize: Int = Defaults.SegmentSize,
@ -834,8 +838,10 @@ class KafkaConfig(/** ********* Zookeeper Configuration ***********/
@@ -834,8 +838,10 @@ class KafkaConfig(/** ********* Zookeeper Configuration ***********/
require(brokerId>=-1&&brokerId<=maxReservedBrokerId,"broker.id must be equal or greater than -1 and not greater than reserved.broker.max.id")
require(logRollTimeMillis>=1,"log.roll.ms must be equal or greater than 1")
require(logRollTimeJitterMillis>=0,"log.roll.jitter.ms must be equal or greater than 0")
require(logRetentionTimeMillis>=1,"log.retention.ms must be equal or greater than 1")
require(_logRetentionTimeMins.forall(_>=1),"log.retention.minutes must be equal or greater than 1")
require(_logRetentionTimeMins.forall(_>=1)||_logRetentionTimeMins.forall(_.equals(-1)),"log.retention.minutes must be unlimited (-1) or, equal or greater than 1")
require(logRetentionTimeHours>=1||logRetentionTimeHours==-1,"log.retention.hours must be unlimited (-1) or, equal or greater than 1")
require(logRetentionTimeMillis>=1||logRetentionTimeMillis==-1,"log.retention.ms must be unlimited (-1) or, equal or greater than 1")
require(logDirs.size>0)
require(logCleanerDedupeBufferSize/logCleanerThreads>1024*1024,"log.cleaner.dedupe.buffer.size must be at least 1MB per cleaner thread.")
@ -370,7 +370,7 @@ class AdminTest extends JUnit3Suite with ZooKeeperTestHarness with Logging {
@@ -370,7 +370,7 @@ class AdminTest extends JUnit3Suite with ZooKeeperTestHarness with Logging {