Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 21, 2026

This PR fixes an issue where database query errors were silently dropped using .filter_map(Result::ok).

Changes

  • Replaced .filter_map(Result::ok) with explicit match blocks in search_similar, get_all_chunks_for_file, and get_all_files.
  • Added warning logs using tracing::warn! when a row fails to deserialize or process, preventing silent data loss.

Validation

  • Verified with local reproduction test case (simulated corrupted rows).
  • Ran existing test suite (cargo test) to ensure no regressions.

This change ensures that corrupted entries or deserialization errors are logged rather than silently ignored, improving debuggability and data integrity.

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.

3 participants