Skip to content

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

Open
wyxxxcat wants to merge 1 commit into
apache:branch-4.0from
wyxxxcat:pick_62938_4_0
Open

branch-4.0: [fix](be) Poll packed file async close without blocking #62938#63531
wyxxxcat wants to merge 1 commit into
apache:branch-4.0from
wyxxxcat:pick_62938_4_0

Conversation

@wyxxxcat
Copy link
Copy Markdown
Collaborator

pick: #62938

fix: apache#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.
@wyxxxcat
Copy link
Copy Markdown
Collaborator Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 80.95% (51/63) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 71.37% (25458/35671)
Line Coverage 54.15% (269318/497318)
Region Coverage 51.60% (222391/430969)
Branch Coverage 53.04% (95756/180541)

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.

2 participants