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 2021/10/14 09:55:54 UTC

[GitHub] [kafka] dajac opened a new pull request #11396: HOTFIX: Compilation fails due to unhandled deprecation warnings in streams tests

dajac opened a new pull request #11396:
URL: https://github.com/apache/kafka/pull/11396


   ```
   > Task :streams:compileTestJava FAILED
   /Users/djacot/dev/src/github.com/dajac/kafka/streams/src/test/java/org/apache/kafka/streams/kstream/TimeWindowsTest.java:65: warning: [deprecation] grace(java.time.Duration) in org.apache.kafka.streams.kstream.TimeWindows has been deprecated
           assertThrows(IllegalStateException.class, () -> TimeWindows.ofSizeAndGrace(ofMillis(10), ofMillis(10)).grace(ofMillis(10)));
                                                                                                                 ^
   /Users/djacot/dev/src/github.com/dajac/kafka/streams/src/test/java/org/apache/kafka/streams/kstream/TimeWindowsTest.java:66: warning: [deprecation] grace(java.time.Duration) in org.apache.kafka.streams.kstream.TimeWindows has been deprecated
           assertThrows(IllegalStateException.class, () -> TimeWindows.ofSizeWithNoGrace(ofMillis(10)).grace(ofMillis(10)));
                                                                                                      ^
   error: warnings found and -Werror specified
   /Users/djacot/dev/src/github.com/dajac/kafka/streams/src/test/java/org/apache/kafka/streams/kstream/JoinWindowsTest.java:79: warning: [deprecation] grace(java.time.Duration) in org.apache.kafka.streams.kstream.JoinWindows has been deprecated
           assertThrows(IllegalStateException.class, () -> JoinWindows.ofTimeDifferenceAndGrace(ofMillis(10), ofMillis(10)).grace(ofMillis(10)));
                                                                                                                           ^
   /Users/djacot/dev/src/github.com/dajac/kafka/streams/src/test/java/org/apache/kafka/streams/kstream/JoinWindowsTest.java:80: warning: [deprecation] grace(java.time.Duration) in org.apache.kafka.streams.kstream.JoinWindows has been deprecated
           assertThrows(IllegalStateException.class, () -> JoinWindows.ofTimeDifferenceWithNoGrace(ofMillis(10)).grace(ofMillis(10)));
                                                                                                                ^
   /Users/djacot/dev/src/github.com/dajac/kafka/streams/src/test/java/org/apache/kafka/streams/kstream/SessionWindowsTest.java:92: warning: [deprecation] grace(java.time.Duration) in org.apache.kafka.streams.kstream.SessionWindows has been deprecated
           assertThrows(IllegalStateException.class, () -> SessionWindows.ofInactivityGapAndGrace(ofMillis(10), ofMillis(10)).grace(ofMillis(10)));
                                                                                                                             ^
   /Users/djacot/dev/src/github.com/dajac/kafka/streams/src/test/java/org/apache/kafka/streams/kstream/SessionWindowsTest.java:93: warning: [deprecation] grace(java.time.Duration) in org.apache.kafka.streams.kstream.SessionWindows has been deprecated
           assertThrows(IllegalStateException.class, () -> SessionWindows.ofInactivityGapWithNoGrace(ofMillis(10)).grace(ofMillis(10)));
                                                                                                                  ^
   1 error
   6 warnings
   ```
   
   ### 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