Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

QueueFile hangs on a 'corrupt' file #43

Closed
pforhan opened this issue Mar 5, 2014 · 1 comment · Fixed by #44
Closed

QueueFile hangs on a 'corrupt' file #43

pforhan opened this issue Mar 5, 2014 · 1 comment · Fixed by #44

Comments

@pforhan
Copy link
Contributor

pforhan commented Mar 5, 2014

Still researching how we got here, but we have a file filled with zeros, even the header. This causes QueueFile.expandIfNecessary to never complete, it's basically adding the fileLength each time through.

I propose we add an additional check on fileLength when we read it in readHeader. If zero (and less than zero? java ints are signed, after all) it would throw an IOException, failing fast.

@pforhan
Copy link
Contributor Author

pforhan commented Mar 5, 2014

Update: may be related to #39

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant