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
random scan_id not random enough #66
Comments
Hi, We do not expect multiple requests for full system scan within a second. If you have such requirements, we can enhance the API, to accept scanID from the application. You can raise a pull request with the enhancements. We accept pull requests. :) Thanks. |
I'm not familiar with the internals, but if the scanID isn't sequential, why isn't crypto randomBytes, or the |
We will be fixing this shortly |
Fix is available from release 1.0.49. |
If this:
aerospike-client-nodejs/src/main/client/query_foreach.cc
Lines 467 to 471 in 80d423f
gets hit more than once in a second then the scan_id gets duplicated and you end up with errors like:
WARNING (scan): (thr_tscan.c::807) not starting scan 1926250993 because rchash_put() failed with error -4
It's not likely to happen in production but for pre-deployment testing it's possible for scans to happen very close together (as fast as tests complete). So we're finding we have to put these silly 1 second delays to keep scan_id collisions from happening.
The text was updated successfully, but these errors were encountered: