[ 
https://issues.apache.org/jira/browse/FLINK-12525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17336480#comment-17336480
 ] 

Flink Jira Bot commented on FLINK-12525:
----------------------------------------

This issue was labeled "stale-major" 7 ago and has not received any updates so 
it is being deprioritized. If this ticket is actually Major, please raise the 
priority and ask a committer to assign you the issue or revive the public 
discussion.


> Impose invariant StreamExecutionEnvironment.setBufferTimeout > 0
> ----------------------------------------------------------------
>
>                 Key: FLINK-12525
>                 URL: https://issues.apache.org/jira/browse/FLINK-12525
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / DataStream, Runtime / Network
>            Reporter: Robert Stoll
>            Priority: Major
>              Labels: stale-major
>
> The documentation for the [DataStream 
> API|https://github.com/apache/flink/blob/8674b69964eae50cad024f2c5caf92a71bf21a09/docs/dev/datastream_api.md#controlling-latency]
>  states:
> {quote}buffer timeout of 0 should be avoided, because it can cause severe 
> performance degradation.
> {quote}
> I don't know if the documentation is not appropriate and there are valid 
> cases where a timeout of 0 makes sense. But if not, then the invariant should 
> not be 
> {code}
> if (timeoutMillis < -1) {
>   throw new IllegalArgumentException("Timeout of buffer must be non-negative 
> or -1");
> }
> {code}
> But {{timeoutMillis < 0}} (can also be a second invariant)
> IMO it is bad practice to state it only in the documentation. The API should 
> guide the user in this case (in this sense a second invariant stating the 
> quote above would make more sense).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to