You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2017/12/05 12:22:02 UTC

[jira] [Closed] (FLINK-8198) Useless check against -1 in LimitedConnectionsFileSystem#fromConfig

     [ https://issues.apache.org/jira/browse/FLINK-8198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephan Ewen closed FLINK-8198.
-------------------------------

> Useless check against -1 in LimitedConnectionsFileSystem#fromConfig
> -------------------------------------------------------------------
>
>                 Key: FLINK-8198
>                 URL: https://issues.apache.org/jira/browse/FLINK-8198
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Stephan Ewen
>            Priority: Minor
>             Fix For: 1.4.0, 1.5.0
>
>
> {code}
>         return new ConnectionLimitingSettings(
>             totalLimit == -1 ? 0 : totalLimit,
>             limitIn == -1 ? 0 : limitIn,
>             limitOut == -1 ? 0 : limitOut,
>             openTimeout,
> {code}
> If any of the 3 variables is negative, control would have returned in the if block above.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)