Skip to content

Fix lossy error propagation in consensus - #8156

Merged
timvisee merged 1 commit into
qdrant:devfrom
leohenon:fix/uninformative-tls-errors-7191
Feb 18, 2026
Merged

timvisee merged 1 commit into
qdrant:devfrom
leohenon:fix/uninformative-tls-errors-7191

Conversation

@leohenon

Copy link
Copy Markdown
Contributor

Switched error wrapping in consensus.rs from map_err + anyhow! to .context() to keep the full error chain instead of just transport error.

Picks up from #5095

Fixes #7191

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Copilot AI review requested due to automatic review settings February 17, 2026 04:18

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

@leohenon
leohenon force-pushed the fix/uninformative-tls-errors-7191 branch from b028322 to e5c0ad0 Compare February 17, 2026 04:28
@leohenon
leohenon force-pushed the fix/uninformative-tls-errors-7191 branch from e5c0ad0 to ece978f Compare February 17, 2026 09:22
coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai Bot Feb 17, 2026

@timvisee timvisee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Could you share what the end result looks like? How does using .context() here change how we render the error in practice?

@leohenon

leohenon commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks!

Could you share what the end result looks like? How does using .context() here change how we render the error in practice?

Sure!

map_err(|err| anyhow!("...{err}")) calls Display which just gives you transport error. The actual tls details are lost.

.context() preserves the original error. .expect() uses Debug, so you get the full chain:

Before:

Failed to create timeout channel: transport error

After:

Failed to create timeout channel
Caused by:
    0: transport error
    1: connection error
    2: invalid peer certificate

Same fix as #5095, that covered only two calls.

@timvisee timvisee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@timvisee
timvisee merged commit 2ccc528 into qdrant:dev Feb 18, 2026
15 checks passed
timvisee pushed a commit that referenced this pull request Feb 18, 2026
@leohenon
leohenon deleted the fix/uninformative-tls-errors-7191 branch February 20, 2026 06:33
KShivendu pushed a commit that referenced this pull request Mar 30, 2026
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