You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2023/01/11 06:48:16 UTC
[GitHub] [kafka] ijuma commented on a diff in pull request #13096: MINOR: Multiple clean ups associated with scala collection
ijuma commented on code in PR #13096:
URL: https://github.com/apache/kafka/pull/13096#discussion_r1066626422
##########
core/src/main/scala/kafka/server/KafkaApis.scala:
##########
@@ -483,7 +483,7 @@ class KafkaApis(val requestChannel: RequestChannel,
case (topicPartition, partitionData) =>
try {
if (partitionData.committedMetadata() != null
- && partitionData.committedMetadata().length > config.offsetMetadataMaxSize)
+ && partitionData.committedMetadata().lengthCompare(config.offsetMetadataMaxSize) > 0)
Review Comment:
`committedMetadata` returns a `String`, so this change doesn't seem like an improvement. Similar comment for other similar changes where the underlying collection is _not_ a Scala List.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org