Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash getting file size on non existent blob on Azure. #4836

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

robertbindar
Copy link
Contributor

@robertbindar robertbindar commented Mar 28, 2024

This fixes getting a file size on azure when the blob is non existent. We would end up not getting an error and trying to read an empty array.


TYPE: BUG
DESC: Fix crash getting file size on non existent blob on Azure.

@robertbindar robertbindar requested a review from KiterLuc March 28, 2024 12:57
Copy link

@DimitrisStaratzis
Copy link
Contributor

[sc-4269]

@KiterLuc
Copy link
Contributor

@robertbindar any clue what's failing in CI?

@robertbindar
Copy link
Contributor Author

@KiterLuc let me check

@robertbindar robertbindar force-pushed the rbin/ch44026/file_size_crash branch from 75e24ef to 2763397 Compare March 29, 2024 15:48
@robertbindar robertbindar force-pushed the rbin/ch44026/file_size_crash branch from 2763397 to 82edb78 Compare April 1, 2024 10:36
@@ -442,6 +442,19 @@ TEMPLATE_LIST_TEST_CASE("VFS: File I/O", "[vfs][uri][file_io]", AllBackends) {
Config config = set_config_params(disable_multipart, max_parallel_ops);
VFS vfs{&g_helper_stats, &compute_tp, &io_tp, config};

// Getting file_size on a nonexistent blob shouldn't crash on Azure
Copy link
Contributor

@KiterLuc KiterLuc Apr 1, 2024

Choose a reason for hiding this comment

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

We have follow up work for this. 44271

@KiterLuc KiterLuc changed the title Fix crash getting file size on non existent blob on Azure Fix crash getting file size on non existent blob on Azure. Apr 1, 2024
@KiterLuc KiterLuc merged commit 0c50eeb into dev Apr 1, 2024
58 checks passed
@KiterLuc KiterLuc deleted the rbin/ch44026/file_size_crash branch April 1, 2024 12:13
KiterLuc pushed a commit that referenced this pull request Apr 3, 2024
This fixes getting a file size on azure when the blob is non existent.
We would end up not getting an error and trying to read an empty array.

---
TYPE: BUG
DESC: Fix crash getting file size on non existent blob on Azure.

(cherry picked from commit 0c50eeb)
KiterLuc added a commit that referenced this pull request Apr 3, 2024
…lob on Azure. (#4836) (#4853)

Backport
0c50eeb
from #4836.

---
TYPE: BUG
DESC: Fix crash getting file size on non existent blob on Azure.

Co-authored-by: Robert Bindar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants