Github user kl0u commented on a diff in the pull request: https://github.com/apache/flink/pull/2093#discussion_r66787353 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java --- @@ -121,6 +124,23 @@ public WindowedStream(KeyedStream<T, K> input, } /** + * Sets the allowed lateness. If the {@link WindowAssigner} used + * is in processing time, then the allowed lateness is set to 0. + */ + @PublicEvolving + public WindowedStream<T, K, W> setAllowedLateness(Time lateness) { + long millis = lateness.toMilliseconds(); + if (allowedLateness < 0) { + throw new IllegalArgumentException("The allowed lateness cannot be negative."); + } else if (allowedLateness != 0 && !windowAssigner.isEventTime()) { + this.allowedLateness = 0; --- End diff -- I agree but here we do not have a logger here yet.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---