Skip to content

branch-4.1: [fix](be) Poll packed file async close without blocking #62938#62979

Merged
yiguolei merged 1 commit intobranch-4.1from
auto-pick-62938-branch-4.1
May 1, 2026
Merged

branch-4.1: [fix](be) Poll packed file async close without blocking #62938#62979
yiguolei merged 1 commit intobranch-4.1from
auto-pick-62938-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #62938

### What problem does this PR solve?

fix: #57770

This change adds a non-blocking try_finish_close() hook to FileWriter
and implements it for S3FileWriter. PackedFileManager now polls the
async close result instead of calling close(true) repeatedly while
packed files
  are uploading.

The change avoids re-submitting async close work and lets packed file
upload state transition only after the previous async close has actually
completed. It also propagates async close failures back into the packed
  file state so failed uploads are recorded correctly.

A ut test was added to verify that PackedFileManager polls async close
without blocking or issuing an extra close call, and that async close
failures are handled as packed file upload failures.
@github-actions github-actions Bot requested a review from yiguolei as a code owner April 30, 2026 09:48
@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen
Copy link
Copy Markdown
Contributor

run buildall

@yiguolei yiguolei merged commit 6adb1dd into branch-4.1 May 1, 2026
28 of 32 checks passed
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