Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

  • Fixed NPE in ObjectEndpoint: OzoneOutputStream needs to be closed (to get the key committed) to make upload part info available.
  • Changed OzoneOutputStreamStub to simulate this "no part info before commit" properly. This makes the unit test fail with the previous code.

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

How was this patch tested?

Ran acceptance test ozones3 and S3 Gateway unit tests.

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.
Thanks for catching the issue and fixing it.

Copy link
Member

@elek elek left a comment

Choose a reason for hiding this comment

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

+1 thanks @adoroszlai the fix

Executed the compose/ozones3/test.sh tests locally and all of them are passed.

@elek elek closed this in 89bdb6a Nov 18, 2019
@adoroszlai adoroszlai deleted the HDDS-2521 branch November 18, 2019 09:43
@adoroszlai
Copy link
Contributor Author

Thanks @elek for reviewing and committing it.

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