gaborgsomogyi commented on issue #26590: [SPARK-29953][SS] Don't clean up 
source files for FileStreamSource if the files belong to the output of 
FileStreamSink
URL: https://github.com/apache/spark/pull/26590#issuecomment-556027500
 
 
   > To simplify the condition, this patch assumes that if the source files 
belong to the FileStreamSink, the matched source path is the root of output 
directory for FileStreamSink. For example, suppose we provide a glob path 
/a/b/c/*/* and FileStreamSource processes the file /a/b/c/d/e/f/g/file. Then we 
only check /a/b/c/d/e to see whether there's FileStreamSink metadata log 
available.
   
   As a user I may have a directory structured where `/a/b/_spark_metadata` 
exists (or even `/a/_spark_metadata`). Such case I would be grateful to Spark 
to protect me from accidental file delete/move.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to