Skip to content

Conversation

@guohao-rosicky
Copy link
Contributor

@guohao-rosicky guohao-rosicky commented Oct 22, 2021

https://issues.apache.org/jira/browse/HDDS-5879

OzoneBucket and RpcClient not support multipart upload with Stream.
Add the createMultipartStreamKey method

@captainzmc
Copy link
Member

Thanks @guohao-rosicky for your contribution. Could you update the URL of jira in comment? Also, the current code check style still has some problems, and it is better to add some UT to test the new interface.

@guohao-rosicky guohao-rosicky force-pushed the ozone-client-multipart-stream-key branch from f7ea63a to 46f4fa4 Compare October 22, 2021 10:18
@guohao-rosicky
Copy link
Contributor Author

@guohao-rosicky
Copy link
Contributor Author

Thanks @captainzmc , has been modified.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we create a Jira for this TODO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@captainzmc captainzmc self-requested a review October 25, 2021 02:50
@guohao-rosicky guohao-rosicky force-pushed the ozone-client-multipart-stream-key branch from 46f4fa4 to dffcd34 Compare October 25, 2021 03:42
@guohao-rosicky
Copy link
Contributor Author

Thanks @captainzmc , already added UT.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. Just a question inlined.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why we pass replicationConfig but not use openKey.getKeyInfo().getReplicationConfig()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@szetszwo
I noticed it. Thanks for reminding me. I have revised it.

@guohao-rosicky guohao-rosicky force-pushed the ozone-client-multipart-stream-key branch 2 times, most recently from e10fe82 to b9c5d4c Compare November 16, 2021 05:33
@guohao-rosicky guohao-rosicky force-pushed the ozone-client-multipart-stream-key branch from b9c5d4c to c47548a Compare November 16, 2021 08:53
Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

@guohao-rosicky , thanks for the update.

The new testMultiPartUploadWithStream() failed. Please take a look.

I also have a minor comment inlined.

if (feInfo != null) {
// todo: need to support file encrypt,
// https://issues.apache.org/jira/browse/HDDS-5892
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's throw a UnsupportedOperationException.

      throw new UnsupportedOperationException(
          "FileEncryptionInfo is not yet supported in createMultipartStreamKey");

@szetszwo
Copy link
Contributor

@guohao-rosicky , TestOzoneRpcClientAbstract.testMultiPartUploadWithStream failed again in the last build. Please take a look.

@guohao-rosicky
Copy link
Contributor Author

@guohao-rosicky , TestOzoneRpcClientAbstract.testMultiPartUploadWithStream failed again in the last build. Please take a look.

Thanks @szetszwo , please TBR.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo szetszwo merged commit a8a25b8 into apache:HDDS-4454 Nov 19, 2021
szetszwo pushed a commit that referenced this pull request Nov 30, 2021
szetszwo pushed a commit that referenced this pull request Dec 30, 2021
szetszwo pushed a commit that referenced this pull request Jan 20, 2022
captainzmc pushed a commit that referenced this pull request Feb 9, 2022
szetszwo pushed a commit that referenced this pull request Feb 16, 2022
szetszwo pushed a commit that referenced this pull request Mar 15, 2022
szetszwo pushed a commit that referenced this pull request Mar 24, 2022
szetszwo pushed a commit to szetszwo/ozone that referenced this pull request May 6, 2022
szetszwo pushed a commit that referenced this pull request May 13, 2022
szetszwo pushed a commit that referenced this pull request May 24, 2022
szetszwo pushed a commit that referenced this pull request Jun 9, 2022
captainzmc pushed a commit to captainzmc/hadoop-ozone that referenced this pull request Jul 4, 2022
szetszwo pushed a commit that referenced this pull request Oct 25, 2022
…mKey method (#2760)

(cherry picked from commit be9641f)
(cherry picked from commit 9a16e41e1f29373e0e0f2a186237ded0dd0b53b4)
szetszwo pushed a commit that referenced this pull request Nov 7, 2022
…mKey method (#2760)

(cherry picked from commit be9641f)
(cherry picked from commit 9a16e41e1f29373e0e0f2a186237ded0dd0b53b4)
(cherry picked from commit 8de50af)
szetszwo pushed a commit that referenced this pull request Dec 1, 2022
szetszwo pushed a commit that referenced this pull request Dec 16, 2022
nishitpatira pushed a commit to nishitpatira/ozone that referenced this pull request Dec 16, 2022
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.

4 participants