matthewdeng commented on issue #41087:
URL: https://github.com/apache/arrow/issues/41087#issuecomment-2073833604
Thanks @kou! I forgot to mention that deleting the `filesystem` _does_
resolve the issue:
**Explicitly:**
```python
import pyarrow.fs
filesystem = pyarrow.fs.S3FileSystem(role_arn="...")
del filesystem
```
**Implicitly:**
```python
import pyarrow.fs
def main():
filesystem = pyarrow.fs.S3FileSystem(role_arn="...")
main()
```
Separately, I also just tried this with `pyarrow==16.0.0` which was recently
released, and it seems like the issue no longer surfaces. Let me do some more
extensive validation, if I'm no longer able to reproduce the issue in this
version I can close this issue.
--
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]