Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the disk backed queue should set "canAdd" to false whenever we have #376

Merged
merged 1 commit into from
Nov 24, 2015

Conversation

nh13
Copy link
Member

@nh13 nh13 commented Nov 9, 2015

spilled to disk and have started removing records from RAM, or whenever
we start removing records from disk. The pathology was that we would
let callers add if there was any room in ram, regardless if we had
spilled records to disk, thus causing records to become out of order.
If the entire queue is empty, we set canAdd to true again. Added test
to make sure an exception is thrown if we add when we should not.

See: broadinstitute/picard#327

@bradtaylor

spilled to disk and have started removing records from RAM, or whenever
we start removing records from disk.  The pathology was that we would
let callers add if there was any room in ram, regardless if we had
spilled records to disk, thus causing records to become out of order.
If the entire queue is empty, we set canAdd to true again.  Added test
to make sure an exception is thrown if we add when we should not.
@tfenne
Copy link
Member

tfenne commented Nov 24, 2015

OMFG the statefulness in these tests is really sucky. Think I've finally got it this time. 🔨

@tfenne
Copy link
Member

tfenne commented Nov 24, 2015

@nh13 I reviewed the code and the new test and think this looks good. I also fixed up the failing test (it was a nasty interdependency between test classes and tmp directory contents, not a problem with the code being tested). Merging now.

tfenne added a commit that referenced this pull request Nov 24, 2015
the disk backed queue should set "canAdd" to false whenever we have
@tfenne tfenne merged commit 59cbceb into master Nov 24, 2015
@tfenne tfenne deleted the nh_fix_picard_issue_327 branch November 24, 2015 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants