Skip to content

Conversation

@patrickbrophy
Copy link
Contributor

@patrickbrophy patrickbrophy commented Dec 17, 2025

This PR improves the robustness and user experience of POSC uploads by addressing two related issues: incomplete uploads and premature file visibility.

The PR does the following:

  • POSC now uses the oss.asize attribute, when provided, to determine the expected size of an upload. This allows POSC to detect and guard against incomplete uploads using the expected size as an advisory check.
  • File creation behavior has been adjusted so that POSC no longer creates an empty file at the final destination before an upload completes. This prevents empty files from briefly appearing in directory listings during active uploads.

There are two parts to this commit, the first being that we are spoofing
creates because we are handling it in the call to Open. The second part
is using the `oss.asize` to give a hint on how big the upload is so that
we can ensure that the file is only commited when all expected bytes are
on disk.
@patrickbrophy patrickbrophy added bug Something isn't working enhancement New feature or request labels Dec 17, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@patrickbrophy
Copy link
Contributor Author

@bbockelm This is ready for your review

Copy link
Collaborator

@bbockelm bbockelm left a comment

Choose a reason for hiding this comment

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

LGTM!

@patrickbrophy patrickbrophy merged commit e65236c into PelicanPlatform:main Dec 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants