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

Inverse Bloom Filter: wrong result after ReadFrom gzipped i/o stream #25

Open
shenwei356 opened this issue Jul 4, 2018 · 1 comment

Comments

@shenwei356
Copy link

shenwei356 commented Jul 4, 2018

Hi, Thanks for writing this useful package, I like it very much.

However when I found a problem as the title said when using InverseBloomFilter.

I edited the test code (attached below) for writing and reading a gzipped i/o stream for saving disk space, but the result said

Expected both filters to Test the same for 0

And when switching off gzipped, i.e., no compression, everything is OK.

I also test the ScalableBloomFilter, these's no such problem.

Please help, thanks for your time.


Test code:

https://gist.github.com/shenwei356/659cffae84f9cb2365ba70ac3866af49

@shenwei356
Copy link
Author

Reading compressed file using bufio.NewReader(r) and without gzip.NewReader causes error too.

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

No branches or pull requests

1 participant