-
Notifications
You must be signed in to change notification settings - Fork 3
[fix] Filesystem path: hash function not robust enough #129
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
Conversation
f77a4cf
to
f0c8928
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Remove debug logs?
jeez, on the agents there's no HW random source probably, so ahash falls back to another path which is actually less random -> the test now fails (: https://docs.rs/ahash/latest/ahash/ having a look |
woops, looks like fasthash is causing trouble to the CI.. having a look later, a bit short at the moment |
still not good enough, cc @photoroman https://github.com/Photoroom/datago/actions/runs/15634295340/job/44045572960 |
lucky catch, a unit test failed on me and I had to investigate.. the hashing function was not good enough and sequential filenames could all end up in the same bucket (for 10 consecutive files, something like 10% of the time)
Fixed by using a better hashing function