GitHub user jerryshao opened a pull request:
https://github.com/apache/spark/pull/16657
[SPARK-19306][Core] Fix inconsistent state in DiskBlockObject when
expection occurred
## What changes were proposed in this pull request?
In `DiskBlockObjectWriter`, when some errors happened during writing, it
will call `revertPartialWritesAndClose`, if this method again failed due to
some issues like out of disk, it will throw exception without resetting the
state of this writer, also skipping the revert. So here propose to fix this
issue to offer user a chance to recover from such issue.
## How was this patch tested?
Existing test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jerryshao/apache-spark SPARK-19306
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16657.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 #16657
----
commit f9819d5cab83d56532ab924a29c7affc7c369dda
Author: jerryshao <[email protected]>
Date: 2017-01-20T08:00:18Z
Fix inconsistent state in DiskBlockObject when expection occurred
Change-Id: I837b5135dd67034d74a9832133dc29800c88f089
----
---
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]