You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ma...@apache.org on 2019/05/06 10:37:58 UTC
[kafka] branch trunk updated: MINOR: Fix
ThrottledReplicaListValidator doc error. (#6537)
This is an automated email from the ASF dual-hosted git repository.
manikumar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new aaf2345 MINOR: Fix ThrottledReplicaListValidator doc error. (#6537)
aaf2345 is described below
commit aaf23453865a832fab6bc1145a6416c5071ce348
Author: huxi <hu...@hotmail.com>
AuthorDate: Mon May 6 18:37:30 2019 +0800
MINOR: Fix ThrottledReplicaListValidator doc error. (#6537)
Reviewers: Manikumar Reddy <ma...@gmail.com>
---
core/src/main/scala/kafka/server/ConfigHandler.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/main/scala/kafka/server/ConfigHandler.scala b/core/src/main/scala/kafka/server/ConfigHandler.scala
index 5593225..5a33ea2 100644
--- a/core/src/main/scala/kafka/server/ConfigHandler.scala
+++ b/core/src/main/scala/kafka/server/ConfigHandler.scala
@@ -205,7 +205,7 @@ object ThrottledReplicaListValidator extends Validator {
if (!(proposed.forall(_.toString.trim.matches("([0-9]+:[0-9]+)?"))
|| proposed.headOption.exists(_.toString.trim.equals("*"))))
throw new ConfigException(name, value,
- s"$name must be the literal '*' or a list of replicas in the following format: [partitionId],[brokerId]:[partitionId],[brokerId]:...")
+ s"$name must be the literal '*' or a list of replicas in the following format: [partitionId]:[brokerId],[partitionId]:[brokerId],...")
}
value match {
case scalaSeq: Seq[_] => check(scalaSeq)
@@ -214,6 +214,6 @@ object ThrottledReplicaListValidator extends Validator {
}
}
- override def toString: String = "[partitionId],[brokerId]:[partitionId],[brokerId]:..."
+ override def toString: String = "[partitionId]:[brokerId],[partitionId]:[brokerId],..."
}