Skip to content

Conversation

@scribe
Copy link
Contributor

@scribe scribe commented Nov 9, 2019

This is a bit of a hack, but it passes all the tests now.

@rpmoore
Copy link
Contributor

rpmoore commented Nov 9, 2019

It doesn't look like we've enabled git lfs for this repo. We probably should do that and push that zip file in there.

size = channel.read(dst);
position += size;
return size;
return Long.valueOf(size).intValue();
Copy link
Contributor

@rpmoore rpmoore Nov 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the lack of this cause problems when a blob was over 4GB?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one of the places it failed, I can't say if this is wholly the issue though.

.map(bulkObject -> bulkObject.getOffset())
.max(Long::compareTo).orElseGet(() -> blob.getOffset());

final boolean isReadOnly = ((SeekableByteChannelDecorator) seekableByteChannel).wrappedSeekableByteChannel() instanceof ReadOnlySeekableByteChannel;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the cast here needed in order to perform the instanceof check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We know it is a SeekableByteChannelDecorator because we wrap it further up, but the wrappedSeekableByteChannel() is only on the Decorator

return makePutTransferMethod();
}
});
(client, masterObjectList, eventDispatcher) -> new PutSequentialBlobStrategy(ds3Client,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rpmoore rpmoore merged commit 76ac12f into master Nov 9, 2019
rpmoore pushed a commit that referenced this pull request Nov 9, 2019
* Fixed

* Oops

* Imports

* Imports

* Imports
rpmoore added a commit that referenced this pull request Jan 30, 2020
* JSDK-297: Add new Header value to HEAD Object. (#577)

* JSDK-297: Add new Header value to HEAD Object. Adding in parsing for new headers 'creation-date' and 'version-id' into the head object response payload.

* JSDK-297: Add new Header value to HEAD Object. Generated head object call with new header parsing.

* Streaming Fix - JSDK-298 (#579)

* Fixed

* Oops

* Imports

* Imports

* Imports

* cherrypicking streaming blob change and reving to 5.0.6

* Merging missing changes from 5.1.2

Co-authored-by: RachelTucker <RachelTucker@users.noreply.github.com>
Co-authored-by: Eric <192110+scribe@users.noreply.github.com>
@RachelTucker RachelTucker deleted the StreamingFix branch October 7, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants