Github user darionyaphet commented on a diff in the pull request:
https://github.com/apache/storm/pull/1527#discussion_r70832297
--- Diff:
storm-core/src/jvm/org/apache/storm/topology/base/BaseWindowedBolt.java ---
@@ -66,10 +66,14 @@ public String toString() {
* Holds a Time duration for time based windows and sliding intervals.
*/
public static class Duration {
- public final int value;
+ public final long value;
public Duration(int value, TimeUnit timeUnit) {
- this.value = (int) timeUnit.toMillis(value);
+ this.value = timeUnit.toMillis(value);
+ }
+
+ public Duration(long value) {
--- End diff --
actually `Duration(long value)` is represent the time interval in
milliseconds, so it doesn't time unit to covert .
---
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 [email protected] or file a JIRA ticket
with INFRA.
---