GitHub user torbiak opened a pull request:
https://github.com/apache/storm/pull/1067
STORM-1515: Reset LocalState if corrupted after a hard reboot on Windows
On Windows LocalState IO requests interrupted by a hard reboot can
result in a file full of NULs, similar to the empty-file corruption seen in
STORM-307.
I've fixed this for 0.9.x first since I haven't upgraded to 0.10 yet. The
fix for 0.10 will be slightly different due to the move to Thrift for
LocalState serialization.
It might be desirable to catch EOFException instead of checking
serialized.length, since it could cover more cases of corruption, like a
partially-written serialization stream.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/torbiak/storm 0.9.x-branch
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/1067.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 #1067
----
commit 69c90bdda052e68c18a2ecfe43c34999869aa144
Author: Jordan Torbiak <[email protected]>
Date: 2016-02-02T01:48:53Z
STORM-1515: Reset LocalState if corrupted after a hard reboot on Windows
On Windows LocalState IO requests interrupted by a hard reboot can
result in a file full of NULs, similar to the empty-file corruption seen
in STORM-307.
----
---
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.
---