Skip to content

Commit

Permalink
Fix final allowskew error to properly handle a large allowedSkew
Browse files Browse the repository at this point in the history
  • Loading branch information
laraschmidt committed Feb 17, 2022
1 parent 459fea0 commit 45170d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2614,7 +2614,9 @@ private void checkOnWindowExpirationTimestamp(Instant timestamp) {
+ "changing the allowed skew.",
timestamp,
currentTimer.getHoldTimestamp(),
PeriodFormat.getDefault().print(doFn.getAllowedTimestampSkew().toPeriod()),
doFn.getAllowedTimestampSkew().getMillis() >= Integer.MAX_VALUE
? doFn.getAllowedTimestampSkew()
: PeriodFormat.getDefault().print(doFn.getAllowedTimestampSkew().toPeriod()),
BoundedWindow.TIMESTAMP_MAX_VALUE));
}
}
Expand Down

0 comments on commit 45170d0

Please sign in to comment.