spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tathagata Das (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-9801) Spark streaming deletes the temp file and backup files without checking if they exist or not
Date Tue, 11 Aug 2015 00:19:46 GMT

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

Tathagata Das resolved SPARK-9801.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0
                   1.4.2
                   1.3.2

> Spark streaming deletes the temp file and backup files without checking if they exist
or not
> --------------------------------------------------------------------------------------------
>
>                 Key: SPARK-9801
>                 URL: https://issues.apache.org/jira/browse/SPARK-9801
>             Project: Spark
>          Issue Type: Bug
>          Components: Streaming
>    Affects Versions: 1.4.1
>            Reporter: Hao Zhu
>            Priority: Minor
>             Fix For: 1.3.2, 1.4.2, 1.5.0
>
>
> For spark streaming, when checkpoint is happening, it is getting below error message
from spark driver log: 
> {code}
> 15/07/29 11:04:50 INFO CheckpointWriter: Saving checkpoint for time 1438135490000 ms
to file 'maprfs:/user/mapr/spark-checkpoint2/checkpoint-1438135490000' 
> 15/07/29 11:04:50 ERROR MapRFileSystem: Failed to delete path maprfs:/user/mapr/spark-checkpoint2/temp,
error: No such file or directory (2) 
> 15/07/29 11:04:50 ERROR MapRFileSystem: Failed to delete path maprfs:/user/mapr/spark-checkpoint2/checkpoint-1438135490000.bk,
error: No such file or directory (2) 
> 15/07/29 11:04:50 INFO CheckpointWriter: Deleting maprfs:///user/mapr/spark-checkpoint2/checkpoint-1438135480000

> 15/07/29 11:04:50 INFO CheckpointWriter: Checkpoint for time 1438135490000 ms saved to
file 'maprfs:/user/mapr/spark-checkpoint2/checkpoint-1438135490000', took 8729 bytes and 14
ms 
> 15/07/29 11:04:50 INFO DStreamGraph: Clearing checkpoint data for time 1438135490000
ms 
> 15/07/29 11:04:50 INFO DStreamGraph: Cleared checkpoint data for time 1438135490000 ms
> {code}
> From the source code : 
> https://github.com/apache/spark/blob/master/streaming/src/main/scala/org/apache/spark/streaming/Checkpoint.scala
> When Spark tries to delete the 2 files, it did not check if the 2 files exist or not.

> fs.delete(tempFile, true) // just in case it exists 
> fs.delete(backupFile, true) // just in case it exists
> We should add the logic to check if the files exist or not before deleting.



--
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


Mime
View raw message