GitHub user harishreedharan opened a pull request:
https://github.com/apache/spark/pull/3726
[SPARK-4790][STREAMING] Fix ReceivedBlockTrackerSuite waits for old file...
...s to get deleted before continuing.
Since the deletes are happening asynchronously, the getFileStatus call
might throw an exception in older HDFS
versions, if the delete happens between the time listFiles is called on the
directory and getFileStatus is called
on the file in the getFileStatus method.
This PR addresses this by adding an option to delete the files
synchronously and then waiting for the deletion to
complete before proceeding.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/harishreedharan/spark spark-4790
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3726.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3726
----
commit af00fd145f05cb7bee2474ee37f366e1fd56912d
Author: Hari Shreedharan <[email protected]>
Date: 2014-12-17T21:35:20Z
[SPARK-4790][STREAMING] Fix ReceivedBlockTrackerSuite waits for old files
to get deleted before continuing.
Since the deletes are happening asynchronously, the getFileStatus call
might throw an exception in older HDFS
versions, if the delete happens between the time listFiles is called on the
directory and getFileStatus is called
on the file in the getFileStatus method.
This PR addresses this by adding an option to delete the files
synchronously and then waiting for the deletion to
complete before proceeding.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]