[ https://issues.apache.org/jira/browse/STORM-1932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15377166#comment-15377166 ]
ASF GitHub Bot commented on STORM-1932: --------------------------------------- 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 . > Change Duration's value data type > ---------------------------------- > > Key: STORM-1932 > URL: https://issues.apache.org/jira/browse/STORM-1932 > Project: Apache Storm > Issue Type: Improvement > Components: storm-core > Reporter: darion yaphet > Assignee: darion yaphet > > BaseWindowedBolt Duration value is integer now . Use long to express time > interval maybe better -- This message was sent by Atlassian JIRA (v6.3.4#6332)