Skip to content

HDDS-7958. Ozone client not closed in integration tests#4373

Merged
adoroszlai merged 39 commits intoapache:masterfrom
adoroszlai:HDDS-7958
Mar 16, 2023
Merged

HDDS-7958. Ozone client not closed in integration tests#4373
adoroszlai merged 39 commits intoapache:masterfrom
adoroszlai:HDDS-7958

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Update lots of integration tests to properly close OzoneClient, OzoneInputStream, ScmClient, XceiverClient* after use.

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

How was this patch tested?

Ran integration tests, checked for ManagedChannelImpl ... was not shutdown reports.

https://github.com/adoroszlai/hadoop-ozone/actions/runs/4379443303

@adoroszlai adoroszlai self-assigned this Mar 10, 2023
@kerneltime kerneltime requested a review from duongkame March 13, 2023 06:47
Copy link
Contributor

@duongkame duongkame 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 doing the hard work to clean the integration tests up, @adoroszlai.
This PR is very important in the sense that, after this change, any leak warning in the integ test log is considered a real prod problem immediately without double checking if it's from a test.
The code looks good. I just put a suggestion to simplify the code changes a bit more.

@adoroszlai adoroszlai merged commit 0f1ba3f into apache:master Mar 16, 2023
@adoroszlai adoroszlai deleted the HDDS-7958 branch March 16, 2023 16:46
@adoroszlai
Copy link
Contributor Author

Thanks @duongkame for the helpful reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments