Skip to content

Fix HiveMinioDataLake leak when start fails#14763

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/fix-hiveminiodatalake-leak-when-start-fails-121c7a
Oct 27, 2022
Merged

Fix HiveMinioDataLake leak when start fails#14763
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/fix-hiveminiodatalake-leak-when-start-fails-121c7a

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Oct 26, 2022

HiveMinioDataLake.start starts more than one container. If second
fails to start, first will be left running. That's why the class has
separate start method. The caller needs to hold on to an instance
before invoking the start method, and ensure close() is called
regardless of start success.

`HiveMinioDataLake.start` starts more than one container. If second
fails to start, first will be left running. That's why the class has
separate `start` method. The caller needs to hold on to an instance
before invoking the `start` method, and ensure `close()` is called
regardless of `start` success.
@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Oct 26, 2022
@cla-bot cla-bot bot added the cla-signed label Oct 26, 2022
Copy link
Copy Markdown
Member

@skrzypo987 skrzypo987 left a comment

Choose a reason for hiding this comment

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

I wonder what we can do to prevent that mistake from happening again.

@findepi findepi merged commit adc14ab into trinodb:master Oct 27, 2022
@findepi findepi deleted the findepi/fix-hiveminiodatalake-leak-when-start-fails-121c7a branch October 27, 2022 16:30
@github-actions github-actions bot added this to the 402 milestone Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry test

Development

Successfully merging this pull request may close these issues.

5 participants