gaurav-narula commented on code in PR #24172:
URL: https://github.com/apache/kafka/pull/24172#discussion_r4641639798
##########
core/src/main/scala/kafka/server/KafkaApis.scala:
##########
@@ -876,12 +876,17 @@ class KafkaApis(val requestChannel: RequestChannel,
.setLastStableOffset(partitionData.lastStableOffset)
.setLogStartOffset(partitionData.logStartOffset)
.setAbortedTransactions(partitionData.abortedTransactions)
- .setRecords(new LazyDownConversionRecords(tp.topicPartition,
unconvertedRecords, magic, fetchContext.getFetchOffset(tp).get, time))
+ .setRecords(new LazyDownConversionRecords(tp.topicPartition,
unconvertedRecords, magic, fetchContext.getFetchOffset(tp).get, time,
+
logConfig.map(_.maxDecompressedMessageBytes).getOrElse(Records.SOFT_MAX_ARRAY_LENGTH)))
.setPreferredReadReplica(partitionData.preferredReadReplica())
} catch {
case e: UnsupportedCompressionTypeException =>
trace("Received unsupported compression type error during
down-conversion", e)
FetchResponse.partitionResponse(tp,
Errors.UNSUPPORTED_COMPRESSION_TYPE)
+ case e: RecordSizeLimitExceededException =>
+ warn(s"Failed to down-convert records from partition $tp to
message format version $magic " +
Review Comment:
I've dropped the stack trace here. I think we should keep it at warn to aid
discovery on the broker as the client error is quite generic
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]