Skip to content

fix: expose dedup load panic to waiters#25157

Open
jiangxinmeng1 wants to merge 1 commit into
matrixorigin:mainfrom
jiangxinmeng1:fix/dedup-load-panic-error
Open

fix: expose dedup load panic to waiters#25157
jiangxinmeng1 wants to merge 1 commit into
matrixorigin:mainfrom
jiangxinmeng1:fix/dedup-load-panic-error

Conversation

@jiangxinmeng1

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #25129

What this PR does / why we need it:

What changed

When the owner goroutine in dedupLoad panics while running load(), convert the panic value into call.err before re-panicking.

This keeps the owner behavior unchanged, but allows concurrent waiters to see the real failure reason instead of the generic dedup load did not complete sentinel.

Why

After #24387, waiters are woken up when the owner exits, but if the owner panicked they could only observe the sentinel error. That hides the actual root cause, such as corrupt metadata, nil cached data, or decode
panics.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify mergify Bot added the kind/bug Something isn't working label Jun 25, 2026
@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Jun 25, 2026
@jiangxinmeng1 jiangxinmeng1 force-pushed the fix/dedup-load-panic-error branch from 88c75ee to 8e21b56 Compare June 25, 2026 09:20
@matrix-meow matrix-meow added size/XS Denotes a PR that changes [1, 9] lines and removed size/S Denotes a PR that changes [10,99] lines labels Jun 25, 2026
@matrix-meow matrix-meow added size/S Denotes a PR that changes [10,99] lines and removed size/XS Denotes a PR that changes [1, 9] lines labels Jun 25, 2026
@jiangxinmeng1 jiangxinmeng1 force-pushed the fix/dedup-load-panic-error branch from 5a4cda7 to 3f558a0 Compare June 25, 2026 09:33
@matrix-meow matrix-meow added size/XS Denotes a PR that changes [1, 9] lines and removed size/S Denotes a PR that changes [10,99] lines labels Jun 25, 2026
@jiangxinmeng1 jiangxinmeng1 force-pushed the fix/dedup-load-panic-error branch from 3f558a0 to 6e1076f Compare June 25, 2026 09:50
@matrix-meow matrix-meow removed the size/XS Denotes a PR that changes [1, 9] lines label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants