You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "jlprat (via GitHub)" <gi...@apache.org> on 2024/08/15 08:24:26 UTC

Re: [PR] KAFKA- 12834 : Removed Deprecated method under MockProcessorContext [kafka]

jlprat commented on code in PR #16778:
URL: https://github.com/apache/kafka/pull/16778#discussion_r1718113871


##########
streams/test-utils/src/main/java/org/apache/kafka/streams/processor/MockProcessorContext.java:
##########
@@ -450,7 +438,7 @@ public Headers headers() {
     @Override
     public long timestamp() {
         if (recordTimestamp == null) {
-            throw new IllegalStateException("Timestamp must be set before use via setRecordMetadata() or setTimestamp().");

Review Comment:
   I would say that instead of removing this part we should mention the non deprecated method `setRecordTimestamp`



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