-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add NIO write operations #5
Add NIO write operations #5
Conversation
* added the crt library for the s3 transfermanager * added S3WritableByteChannel and enabled the basic test case * changed the async s3 client to use the crt builder
@markjschreiber could you have a look at this? |
@@ -260,11 +260,8 @@ private S3AsyncClient asyncClientForRegion(String regionString){ | |||
Region region = regionString.equals("") ? Region.US_EAST_1 : Region.of(regionString); | |||
logger.debug("bucket region is: '{}'", region.id()); | |||
|
|||
return S3AsyncClient.builder() | |||
return S3AsyncClient.crtBuilder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice update
src/main/java/software/amazon/nio/spi/s3/S3SeekableByteChannel.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Some improvements suggested.
Importantly, can you also update the README to describe how writes works (using a temp file). How read/ write work together (or not) etc.
src/main/java/software/amazon/nio/spi/s3/S3WritableByteChannel.java
Outdated
Show resolved
Hide resolved
src/main/java/software/amazon/nio/spi/s3/S3WritableByteChannel.java
Outdated
Show resolved
Hide resolved
src/main/java/software/amazon/nio/spi/s3/S3WritableByteChannel.java
Outdated
Show resolved
Hide resolved
src/test/java/software/amazon/nio/spi/s3/S3FileSystemProviderTest.java
Outdated
Show resolved
Hide resolved
@markjschreiber thank you for the comments. I will have a look at them today |
Don't forget to include updated information in the README about how write works and what users should expect. |
Yes, I will do this. I just wanted to do the timeout beforehand and update the README as last step. |
… order to focus the test on the channel collection handling
… as the read and write channel and adapted tests
@oeph, many thanks for the contribution! |
Ticket: #4
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.