-
Notifications
You must be signed in to change notification settings - Fork 55
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
external index router #334
Conversation
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.
PR Summary
This pull request implements significant changes to the external indexing system in Lantern, focusing on improved communication protocols and error handling for index data retrieval.
- Introduced protocol version checking and server type verification in
src/hnsw/external_index_socket.c
to ensure compatibility and proper routing - Renamed
external_index_receive_index_part
toexternal_index_receive_all
across multiple files, suggesting a shift to more efficient bulk data retrieval - Added
wait_for_data
function insrc/hnsw/external_index_socket.c
for asynchronous data availability checks, improving interrupt handling - Implemented error message retrieval from external indexing server after receiving error magic bytes in
src/hnsw/external_index_socket.c
- Updated
src/hnsw/external_index_socket.h
with new constants for protocol version and router server type, supporting the enhanced communication system
4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
…col version on first message, handle error messages correctly
9869e97
to
1dfe10f
Compare
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Benchmarks
|
…RY to cleanup build index resources after errors and interrupts
external_index_receive_index_part
toexternal_index_receive_all
wait_for_data
which will asynchronously check for data to be available for reading on socket. This will let us to handle interrupts while waiting for data