Skip to content

Conversation

@maobaolong
Copy link
Member

What changes were proposed in this pull request?

Fix s3g met NPE exception while write file by multiPartUpload

What is the link to the Apache JIRA

HDDS-3995

How was this patch tested?

Send a put request with an uploadId.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @maobaolong the fix.

You mentioned that this started happening after upgrading s3g to HDDS-3350. Can you please explain how that change triggered this NPE? Or was it a previous change, and if so, which one?

Send a put request with an uploadId.

Can you please add a test case in hadoop-ozone/dist/src/main/smoketest/s3 for this?

@maobaolong
Copy link
Member Author

@adoroszlai The HDDS-3994 is triggered by HDDS-3350, about this one, maybe no relation with HDDS-3350.

@maobaolong
Copy link
Member Author

@GlenGeng @bharatviswa504 Thanks for your suggestion, I push a new commit to fix this.

PTAL

@GlenGeng-awx
Copy link
Contributor

+1, LGTM.

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@maobaolong maobaolong closed this Oct 14, 2020
@maobaolong maobaolong reopened this Oct 14, 2020

@staticmethod
def iter_n(iterable, n, fillvalue=None):
args = [iter(iterable)] * n
Copy link
Contributor

@bharatviswa504 bharatviswa504 Oct 14, 2020

Choose a reason for hiding this comment

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

Are these changes related to this PR? It has files named under directory Tencent.

@bharatviswa504
Copy link
Contributor

Closing this, it is committed thru #1499

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.

6 participants