[
https://issues.apache.org/jira/browse/FLINK-9468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500173#comment-16500173
]
ASF GitHub Bot commented on FLINK-9468:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/flink/pull/6094
> get outputLimit of LimitedConnectionsFileSystem incorrectly
> -----------------------------------------------------------
>
> Key: FLINK-9468
> URL: https://issues.apache.org/jira/browse/FLINK-9468
> Project: Flink
> Issue Type: Bug
> Components: FileSystem
> Affects Versions: 1.5.0
> Reporter: Sihua Zhou
> Assignee: Sihua Zhou
> Priority: Critical
> Fix For: 1.6.0, 1.5.1
>
>
> In {{LimitedConnectionsFileSystem#createStream}}, we get the outputLimit
> incorrectly.
> {code:java}
> private <T extends StreamWithTimeout> T createStream(
> final SupplierWithException<T, IOException> streamOpener,
> final HashSet<T> openStreams,
> final boolean output) throws IOException {
> final int outputLimit = output && maxNumOpenInputStreams > 0 ?
> maxNumOpenOutputStreams : Integer.MAX_VALUE;
> /*....*/
> }
> {code}
> should be
> {code:java}
> private <T extends StreamWithTimeout> T createStream(
> final SupplierWithException<T, IOException> streamOpener,
> final HashSet<T> openStreams,
> final boolean output) throws IOException {
> final int outputLimit = output && maxNumOpenOutputStreams > 0 ?
> maxNumOpenOutputStreams : Integer.MAX_VALUE;
> /*....*/
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)