You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Adam Wang (JIRA)" <ji...@apache.org> on 2016/12/23 06:28:58 UTC

[jira] [Updated] (SPARK-18974) FileInputDStream could not detected files which moved to the directory

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

Adam Wang updated SPARK-18974:
------------------------------
    Description: 
FileInputDStream use mod time to find new files, but if a file was moved into the directories it's modification time would not be changed, so FileInputDStream could not detected these files.

I think a way to fix this bug is get access_time and do judgment, bug it need a Set of files to save all old files, it would very inefficient for lot of files directory.

  was:
FileInputDStream use mod time to find new files, but if a file was moved into the directories it's modification time would not changed, so FileInputDStream could not detected these files.
I think a way to fix this bug is get access_time and do judgment, bug it need a Set of files to save all old files, it would very inefficient for lot of files directory.


> FileInputDStream could not detected files which moved to the directory 
> -----------------------------------------------------------------------
>
>                 Key: SPARK-18974
>                 URL: https://issues.apache.org/jira/browse/SPARK-18974
>             Project: Spark
>          Issue Type: Bug
>          Components: DStreams, Input/Output
>    Affects Versions: 1.6.3, 2.0.2
>            Reporter: Adam Wang
>
> FileInputDStream use mod time to find new files, but if a file was moved into the directories it's modification time would not be changed, so FileInputDStream could not detected these files.
> I think a way to fix this bug is get access_time and do judgment, bug it need a Set of files to save all old files, it would very inefficient for lot of files directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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