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

Operations hang indefinitely after opening too many files #828

Closed
passaro opened this issue Mar 27, 2024 · 2 comments
Closed

Operations hang indefinitely after opening too many files #828

passaro opened this issue Mar 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@passaro
Copy link
Contributor

passaro commented Mar 27, 2024

Mountpoint for Amazon S3 version

mount-s3 1.5.0

AWS Region

eu-west-1

Describe the running environment

EC2 instance c5.4xlarge, Amazon Linux 2023

Mountpoint options

mount-s3 BUCKET mnt --maximum-throughput-gbps=8 --debug-crt

What happened?

When too many files are open for writing, Mountpoint becomes unresponsive and operations hangs indefinitely.

Reproduction:

  • Create and open 20 new files inside the mounted directory and do not close them
  • Try ls mnt

The command never returns.

Relevant log output

2024-03-27T14:09:42.198800Z  INFO awscrt::S3ClientStats: id=0x5632618b1230 Requests-in-flight(approx/exact):20/20  Requests-preparing:20  Requests-queued:0  Requests-network(get/put/default/total):0/0/0/0  Requests-streaming-waiting:0  Requests-streaming-response:0  Endpoints(in-table/allocated):1/1
@passaro passaro added the bug Something isn't working label Mar 27, 2024
@passaro
Copy link
Contributor Author

passaro commented Mar 27, 2024

The problem is caused by an issue with how Mountpoint issues upload requests to the underlying Common Runtime client, leading to situations where the client is waiting for the data to upload rather than processing other requests.

We are working on a fix, which will rely on the corresponding change under review here: awslabs/aws-c-s3#418.

@passaro
Copy link
Contributor Author

passaro commented Apr 11, 2024

Fix available in mountpoint-s3 v1.6.0.

@passaro passaro closed this as completed Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant