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

Test case exhibiting infinite getMulti bug #9

Merged
merged 2 commits into from Mar 19, 2012

Conversation

stevenschlansker
Copy link
Contributor

Hi,

I think I've discovered a bug. If there is only a single value for a key, and you call getMulti on that key, the returned iterator will never terminate.

This pull request contains a test case exhibiting the problem.

Thanks,
Steven


Assert.assertTrue(iter.hasNext());
Assert.assertEquals(iter.next(), value);
Assert.assertFalse(iter.hasNext());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect this to be false, but the iterator says it has more values. It continues to produce the same value forever.

sunnygleason added a commit that referenced this pull request Mar 19, 2012
Merging : Test case exhibiting infinite getMulti bug
Investigating now...
@sunnygleason sunnygleason merged commit 114c6fe into sunnygleason:master Mar 19, 2012
@sunnygleason
Copy link
Owner

@stevenschlansker the fix is applied to master now - test cases pass

please test & let me know if you still see issues! thank you for using
hashfile :)

@stevenschlansker
Copy link
Contributor Author

Works like a charm. Thanks for the library! I was going to use CDB but it's really hard to still brag "No random limits: cdb can handle any database up to 4 gigabytes" in 2012, so g414 just fit the bill perfectly! :P

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

2 participants