Comments (3)
Thank you for using this library, it would be great if you create PR so we can merge this change to mainline. Or i can revisit it little bit later, this problem worth to fix, thank you again for creating the issue this makes this library better.
from fs2-aws.
I've experimented with the v3 API and the problem persists. The workaround for v3 is:
fs2.io.readInputStream(
blocker.blockOn(IO(
S3Client.create.getObject(
GetObjectRequest
.builder()
.bucket(bucket)
.key(key)
.build()
)
)),
chunkSize = 4096,
closeAfterUse = true,
blocker = blocker
)
from fs2-aws.
As far as I can tell, it seems this issue has been resolved. Tested today, and discovered through testing that running s3.readFile
(method name appears to have changed since creation of this issue) on a path which does not exist in S3 results in the exception NoSuchKeyException being returned, rather than the process hanging as described above. If this is not the case, is there any additional context surrounding the issue which may be useful in resolving it? Or if this issue has been resolved, may this issue be closed? Steps I performed in reaching this conclusion:
- Set up S3 environment via localstack.
- Create test in S3Suite which should fail in the above specified conditions--added a file key which did not exist.
- Test fails, but returns an exception (NoSuchKeyException) rather than an empty stream.
from fs2-aws.
Related Issues (20)
- Remove DynamoDB streaming support HOT 5
- Kinesis validates the AWS credentials and fail with fake ones (LocalStack) HOT 2
- Expose AWS GetObjectResponse when downloading files
- Vulnerability in netty-nio-client HOT 3
- S3 multipart uploads seem difficult to verify HOT 3
- Release with AWS SDK 2.21 HOT 1
- S3 Multipart Upload, no way to add tags HOT 3
- limitations: stream upload (for small files)
- S3 Invalid Range 416 error when trying to read empty directory HOT 5
- Add a `contentType` parameter for `uploadFile` and `uploadFileMultipart` HOT 1
- Release with AWS SDK 2.25 HOT 2
- Where are the artifacts? HOT 3
- Artifact not resolving (5.x & 4.x) HOT 1
- SqsConfig class is misplaced, it seems
- SQS default fetch message count is greater than max allowed HOT 2
- S3.create returns `F[S3[F]]` when it could just be pure? HOT 1
- Support for multistream processing HOT 3
- Remove fs2-aws-ciris
- Rework KinesisSettings HOT 1
- Dynamodb StreamScan hangs forever if a client error happens HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fs2-aws.