spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-22255) FileAppender InputStream.read() timeout and blocking state
Date Wed, 11 Oct 2017 18:37:00 GMT

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

Sean Owen commented on SPARK-22255:
-----------------------------------

You have to block here, right? I'm not clear how you wait on input if you only check available().
There will be points where there are 0 input bytes available but you don't want to stop.

> FileAppender InputStream.read() timeout and blocking state
> ----------------------------------------------------------
>
>                 Key: SPARK-22255
>                 URL: https://issues.apache.org/jira/browse/SPARK-22255
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Mariusz Galus
>            Priority: Minor
>
> The FileAppender logic when reading from InputStream blocks. This can be simply avoided
with a InputStream.available() check prior to reading. 
> If this is done, a variable for estimated available bytes needs to be instantiated to
use in the conditionals. The conditional for reading from the inputstream and the conditional
for appending to the file.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message