|
|
@ -1007,7 +1007,7 @@ class ReplicaManager(val config: KafkaConfig, |
|
|
|
val isReplicaInSync = nonOfflinePartition(topicPartition).exists { partition => |
|
|
|
val isReplicaInSync = nonOfflinePartition(topicPartition).exists { partition => |
|
|
|
partition.getReplica(replicaId).exists(partition.inSyncReplicas.contains) |
|
|
|
partition.getReplica(replicaId).exists(partition.inSyncReplicas.contains) |
|
|
|
} |
|
|
|
} |
|
|
|
quota.isThrottled(topicPartition) && quota.isQuotaExceeded && !isReplicaInSync |
|
|
|
!isReplicaInSync && quota.isThrottled(topicPartition) && quota.isQuotaExceeded |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def getLogConfig(topicPartition: TopicPartition): Option[LogConfig] = localReplica(topicPartition).flatMap(_.log.map(_.config)) |
|
|
|
def getLogConfig(topicPartition: TopicPartition): Option[LogConfig] = localReplica(topicPartition).flatMap(_.log.map(_.config)) |
|
|
|