kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject kafka git commit: MINOR: Remove stray `%s` in `TopicMetadata.toString`
Date Thu, 03 Nov 2016 11:01:14 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 508711d09 -> 1a2ed8633


MINOR: Remove stray `%s` in `TopicMetadata.toString`

This bug was recently introduced via 2959bc2ad.

Author: Himani Arora <1himani.arora@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #2091 from himani1/minor_fix


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/1a2ed863
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/1a2ed863
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/1a2ed863

Branch: refs/heads/trunk
Commit: 1a2ed8633d6d7194b398a4aa0f0b6f0b4fe4178e
Parents: 508711d
Author: Himani Arora <1himani.arora@gmail.com>
Authored: Thu Nov 3 06:59:27 2016 -0400
Committer: Ismael Juma <ismael@juma.me.uk>
Committed: Thu Nov 3 07:00:05 2016 -0400

----------------------------------------------------------------------
 core/src/main/scala/kafka/api/TopicMetadata.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/1a2ed863/core/src/main/scala/kafka/api/TopicMetadata.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/api/TopicMetadata.scala b/core/src/main/scala/kafka/api/TopicMetadata.scala
index 1be5fbc..7b05a8b 100644
--- a/core/src/main/scala/kafka/api/TopicMetadata.scala
+++ b/core/src/main/scala/kafka/api/TopicMetadata.scala
@@ -144,7 +144,7 @@ case class PartitionMetadata(partitionId: Int,
     partitionMetadataString.append("\tleader: " + leader.getOrElse("none"))
     partitionMetadataString.append("\treplicas: " + replicas.mkString(","))
     partitionMetadataString.append("\tisr: " + isr.mkString(","))
-    partitionMetadataString.append("\tisUnderReplicated: %s" + (isr.size < replicas.size))
+    partitionMetadataString.append("\tisUnderReplicated: " + (isr.size < replicas.size))
     partitionMetadataString.toString()
   }
 


Mime
View raw message