Repository navigation
Description
The failures described below where traced down to minio/minio#20845, which was worked around in #45311.
This issue is now about removing
Lines 20 to 22 in a74eb7e
| # Not a direct dependency of s3fs, but needed for our s3fs fixture | |
| # (temporary upper bound because of GH-45305) | |
| boto3<1.36 |
once a compatible minio release has happened .
Previously:
Describe the enhancement requested
Related to but independent from #45304, the following errors appear in the python test suite with boto3 1.36.1 (still with aws-sdk 1.1.458):
=========================== short test summary info ============================
FAILED pyarrow/tests/test_fs.py::test_get_file_info_with_selector[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
FAILED pyarrow/tests/test_fs.py::test_copy_file[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
FAILED pyarrow/tests/test_fs.py::test_delete_file[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_dataset.py::test_read_s3fs - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_dataset.py::test_read_directory_s3fs - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_dataset.py::test_read_partitioned_directory_s3fs - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_dataset.py::test_write_to_dataset_with_partitions_s3fs - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_dataset.py::test_write_to_dataset_no_partitions_s3fs - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_metadata.py::test_write_metadata_fs_file_combinations - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/parquet/test_parquet_writer.py::test_parquet_writer_filesystem_s3fs - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_get_file_info[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_get_file_info_with_selector[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_copy_file[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_delete_file[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_input_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-None-None-identity] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_input_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-None-64-identity] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_input_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-gzip-None-compress] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_input_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-gzip-256-compress] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_input_file[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_output_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-None-None-identity] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_output_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-None-64-identity] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_output_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-gzip-None-decompress] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_output_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-gzip-256-decompress] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_append_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-None-None-identity-identity] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_append_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-None-64-identity-identity] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_append_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-gzip-None-compress-decompress] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_append_stream[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))-gzip-256-compress-decompress] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
ERROR pyarrow/tests/test_fs.py::test_open_output_stream_metadata[PyFileSystem(FSSpecHandler(s3fs.S3FileSystem()))] - OSError: [Errno 5] An error occurred (MissingContentMD5) when calling the DeleteObjects operation: Missing required header for this request: Content-Md5.
Things run fine when constrained to boto3/botocore 1.35.88.
One question from the POV of the feedstock is whether the breakage is bad enough to encode boto3 <1.36 in the package metadata itself (until this issue is fixed), or whether to just add that constraint to the test requirements. That decision needs to be made for all maintenance branches too (not necessarily in the same way as for main), which are equally affected.
CC @raulcd @pitrou @kou @assignUser
Component(s)
Packaging, Python
Activity
pitrou commentedon Jan 20, 2025
PyArrow does not depend on boto3. These tests only exercise our fsspec bridge.
pitrou commentedon Jan 20, 2025
The only matching result in a Google search is aws/aws-sdk-cpp#1337 (comment) , but it doesn't involve boto3 at all...
pitrou commentedon Jan 20, 2025
Can you post the exception traceback(s)?
h-vetinari commentedon Jan 20, 2025
AFAIU there's some optional support; at least, if
boto3is present, some more things get tested than without. This is what I meant above (so if we want to reflect this on thepyarrow-level, it would be arun_constraint, not a run dependency).Sure:
Example FAILURE
Example ERROR
pitrou commentedon Jan 20, 2025
So, it's a bit weird that this is surfaced by a boto3 upgrade, but this is a Minio vs. AWS SDK compatibility issue, see upstream aws/aws-sdk-java-v2#5805 and minio/minio#20845
According to minio/minio#20845 (comment) , Minio will be fixed to handle new AWS SDK behavior.
h-vetinari commentedon Jan 20, 2025
So in other words, this issue ends up being a consequence of #45304, which itself is a consequence of the minio incompatibility. So once a compatible minio is out, things should go back to normal...
pitrou commentedon Jan 20, 2025
No, it seems to me that #45304 is a different error. It occurs on a different request (PutObject vs. DeleteObjects) and the error message is different. So we'll have to investigate that one separately.
raulcd commentedon Jan 20, 2025
There's a bunch of related nightly failures. Those seem to have started yesterday:
apacheGH-45305: [CI][Python] Temporarily avoid newer boto3 version
GH-45305: [CI][Python] Temporarily avoid newer boto3 version (#45311)
8 remaining items
pitrou commentedon Jan 20, 2025
Well, the test suite here is failing because of an incompatibility between two third-party packages: boto3 and Minio. If Minio is packaged in conda-forge, perhaps its recipe can use the proposed
run_constrained:)bollard commentedon Jan 20, 2025
FYI cross posting for visibility as I do indeed use PyArrow, S3FS (i.e. boto3) and Minio: fsspec/s3fs#931
fix: Limit boto3 to < 1.36 to fix incompatibility with Minio (S3-comp…
GH-45305: [CI] Bump Minio version and unpin boto3 (#45320)
raulcd commentedon Jan 21, 2025
Issue resolved by pull request 45320
#45320
amoeba commentedon Feb 1, 2025
This fixes failing tests in CI for the 19.0.1 release so I'm going to change the milestone and cherry-pick this.
GH-45305: [CI] Bump Minio version and unpin boto3 (#45320)
apacheGH-45305: [CI][Python] Temporarily avoid newer boto3 version (a…
mtofano commentedon Feb 21, 2025
Hey all,
Thanks for looking in to this issue. I am still running in to a similar issue when using pyarrow datasets:
Here is my current pyarrow version:
The error I get is as follows:
I had a similar issue using
s3fsdirectly and the solution was to max versionbotocore<1.36as this change does.Would be much appreciated if someone can look into this please!
Thank you!
amoeba commentedon Mar 17, 2025
Hi @mtofano, can you please file a new issue for the problem you're running into?