-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-13294. Remove the Table.close() method. #8658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sarvekshayr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch @szetszwo. LGTM
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @szetszwo for the patch.
| try { | ||
| if (pipelineStore != null) { | ||
| pipelineStore.close(); | ||
| pipelineStore = null; | ||
| } | ||
| } catch (Exception ex) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: try-catch and if no longer needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually want to remove the close() method. Unfortunately, it is not easy to do.
|
Thanks @sarvekshayr and @adoroszlai for reviewing this! |
…239-container-reconciliation Commits: 9 05567e6 HDDS-13317. Table should support empty array/String (apache#8676) 803fa31 HDDS-13313. Bump maven-javadoc-plugin to 3.11.2 (apache#8672) 774b3ee HDDS-13315. Bump log4j2 to 2.25.0 (apache#8670) b86fad8 HDDS-13316. Bump commons-text to 1.13.1 (apache#8669) c043be7 HDDS-13312. Bump maven-patch-plugin to 1.3 (apache#8673) db6ed84 HDDS-13294. Remove the Table.close() method. (apache#8658) e1365a7 HDDS-13286. Fail stream write when the volume is full. (apache#8644) af3a0f0 HDDS-13307. integration (flaky) fails with all tests passing (apache#8667) d207c18 HDDS-13301. Fix TestSchemaOneBackwardsCompatibility (apache#8666) Conflicts: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/helpers/ContainerUtils.java
What changes were proposed in this pull request?
All the implementations of the Table.close() method are noop. We should remove it.
The patch of this PR is quite big due to the try-with-resource change for auto-closing Table.
What is the link to the Apache JIRA
HDDS-13294
How was this patch tested?
By existing tests.