gaurav-narula commented on code in PR #20141:
URL: https://github.com/apache/kafka/pull/20141#discussion_r2515186671


##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -1109,10 +1109,12 @@ class ReplicaManager(val config: KafkaConfig,
         } catch {
           case e@ (_: UnknownTopicOrPartitionException |
                    _: NotLeaderOrFollowerException |
-                   _: OffsetOutOfRangeException |
                    _: PolicyViolationException |
                    _: KafkaStorageException) =>
             (topicPartition, LogDeleteRecordsResult(-1L, -1L, Some(e)))
+          case e: OffsetOutOfRangeException =>
+            debug("Error processing delete records operation on partition %s. 
%s".format(topicPartition, e.getMessage))

Review Comment:
   ```suggestion
               debug("Error processing delete records operation on partition 
%s".format(topicPartition), e)
   ```
   
   You may want to log the exception as the last argument to get the complete 
stack trace



-- 
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]

Reply via email to