OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-9468) get outputLimit of LimitedConnectionsFileSystem incorrectly


Sihua Zhou created FLINK-9468:
---------------------------------

             Summary: 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
             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)