guozhangwang commented on a change in pull request #11062:
URL: https://github.com/apache/kafka/pull/11062#discussion_r671425031



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/kstream/SessionWindows.java
##########
@@ -187,7 +187,8 @@ public long inactivityGap() {
      */
     @Deprecated
     public long maintainMs() {
-        return Math.max(maintainDurationMs, gapMs);
+        final long gracePeriodMs = graceMs != -1 ? graceMs : 
Math.max(maintainDurationMs, gapMs) - inactivityGap();

Review comment:
       This is not fixing the issue.. we should use the `graceMs`  here, which 
may be specified by the user.




-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to