You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Nancy-ksolves (via GitHub)" <gi...@apache.org> on 2024/08/02 11:06:37 UTC

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

Nancy-ksolves opened a new pull request, #16778:
URL: https://github.com/apache/kafka/pull/16778

   Removed Deprecated Methods under MockProcessorContext Class.
   
   Removed Methods:
   setTimestamp()
   
   
   
   
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


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


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

Posted by "jlprat (via GitHub)" <gi...@apache.org>.
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


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

Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on PR #16778:
URL: https://github.com/apache/kafka/pull/16778#issuecomment-2319463266

   Thanks for the PR @Nancy-ksolves! Merged to `trunk`.


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


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

Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax merged PR #16778:
URL: https://github.com/apache/kafka/pull/16778


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


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

Posted by "Nancy-ksolves (via GitHub)" <gi...@apache.org>.
Nancy-ksolves commented on code in PR #16778:
URL: https://github.com/apache/kafka/pull/16778#discussion_r1736018509


##########
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().");
+            throw new IllegalStateException("Timestamp must be set before use via setRecordMetadata().");

Review Comment:
   Hi @mjsax , mentioned changes has been done.



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


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

Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on code in PR #16778:
URL: https://github.com/apache/kafka/pull/16778#discussion_r1735054403


##########
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().");
+            throw new IllegalStateException("Timestamp must be set before use via setRecordMetadata().");

Review Comment:
   ```suggestion
               throw new IllegalStateException("Timestamp must be set before use via setRecordMetadata() or 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


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

Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on code in PR #16778:
URL: https://github.com/apache/kafka/pull/16778#discussion_r1735050815


##########
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 second this.



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