Skip to content

[HUDI-5200] Clean up resources in hudi common UT#7190

Merged
xushiyan merged 1 commit intoapache:masterfrom
Zouxxyy:zouxxyy/fix-test
Nov 13, 2022
Merged

[HUDI-5200] Clean up resources in hudi common UT#7190
xushiyan merged 1 commit intoapache:masterfrom
Zouxxyy:zouxxyy/fix-test

Conversation

@Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented Nov 13, 2022

Change Logs

In the current UT, some resources are not closed, this causes many local disk storage to be occupied

Impact

Clean up resources in hudi common UT

Risk level (write none, low medium or high below)

low

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@Zouxxyy
Copy link
Contributor Author

Zouxxyy commented Nov 13, 2022

@hudi-bot run azure

basePath = metaClient.getBasePath();
}

protected void cleanMetaClient() {
Copy link
Member

Choose a reason for hiding this comment

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

you could actually register this with @AfterEach ? so that subclasses won't have to call this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you could actually register this with @AfterEach ? so that subclasses won't have to call this

There is no set up method provided in HoodieCommonTestHarness, the subclass controls the objects that need to be initialized, so the subclass controls the cleanup as well.

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@xushiyan xushiyan merged commit b10a7c3 into apache:master Nov 13, 2022
satishkotha pushed a commit to satishkotha/incubator-hudi that referenced this pull request Dec 12, 2022
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants