AlenkaF commented on PR #14601:
URL: https://github.com/apache/arrow/pull/14601#issuecomment-1306851400
The code looks good to me!
AppVeyor is having some trouble though, `AWS Error NETWORK_CONNECTION` in
`test_s3fs_wrong_region()`:
```python
___________________________ test_s3fs_wrong_region
____________________________
def test_s3fs_wrong_region():
from pyarrow.fs import S3FileSystem
# wrong region for bucket
fs = S3FileSystem(region='eu-north-1')
msg = ("When getting information for bucket
'voltrondata-labs-datasets': "
"Looks like the configured region is 'eu-north-1' while the "
"bucket is located in 'us-east-2': *")
with pytest.raises(OSError, match=msg):
> fs.get_file_info("voltrondata-labs-datasets")
pyarrow\tests\test_fs.py:1329:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> info = GetResultValue(self.fs.GetFileInfo(path))
pyarrow\_fs.pyx:571:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> return check_status(status)
pyarrow\error.pxi:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> raise IOError(message)
E OSError: When resolving region for bucket 'voltrondata-labs-datasets':
AWS Error NETWORK_CONNECTION during HeadBucket operation: Encountered network
error when sending http request
pyarrow\error.pxi:115: OSError
During handling of the above exception, another exception occurred:
def test_s3fs_wrong_region():
from pyarrow.fs import S3FileSystem
# wrong region for bucket
fs = S3FileSystem(region='eu-north-1')
msg = ("When getting information for bucket
'voltrondata-labs-datasets': "
"Looks like the configured region is 'eu-north-1' while the "
"bucket is located in 'us-east-2': *")
with pytest.raises(OSError, match=msg):
> fs.get_file_info("voltrondata-labs-datasets")
E AssertionError: Regex pattern did not match.
E Regex: "When getting information for bucket
'voltrondata-labs-datasets': Looks like the configured region is 'eu-north-1'
while the bucket is located in 'us-east-2': *"
E Input: "When resolving region for bucket
'voltrondata-labs-datasets': AWS Error NETWORK_CONNECTION during HeadBucket
operation: Encountered network error when sending http request"
pyarrow\tests\test_fs.py:1329: AssertionError
```
I will re-run the build to see if it helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]