Skip to content

[hotfix][test] Move some auto-closable variables into try-block to manage the closing of objects for MassiveStringSorting.java#27910

Merged
RocMarshal merged 2 commits intoapache:masterfrom
RocMarshal:hotfix_040901
Apr 14, 2026
Merged

[hotfix][test] Move some auto-closable variables into try-block to manage the closing of objects for MassiveStringSorting.java#27910
RocMarshal merged 2 commits intoapache:masterfrom
RocMarshal:hotfix_040901

Conversation

@RocMarshal
Copy link
Copy Markdown
Contributor

What is the purpose of the change

Brief change log

Verifying this change

This change is a trivial rework / code cleanup

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@RocMarshal RocMarshal self-assigned this Apr 9, 2026
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Apr 9, 2026

CI report:

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

@RocMarshal RocMarshal marked this pull request as ready for review April 13, 2026 09:33
BufferedWriter wrt = null;
try {
wrt = new BufferedWriter(new FileWriter(f));
try (BufferedWriter wrt = new BufferedWriter(new FileWriter(f))) {
Copy link
Copy Markdown
Contributor

@spuru9 spuru9 Apr 13, 2026

Choose a reason for hiding this comment

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

Though not related to the file but it would be nice to have this change in

and as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks @spuru9 .
Nice catch!
Updated

RocMarshal and others added 2 commits April 13, 2026 21:31
…nage the closing of objects for MassiveStringSorting.java and MassiveStringValueSorting.java

Co-authored-by: spuru9 <sinhapurushottam911@gmail.com>
Copy link
Copy Markdown
Contributor

@spuru9 spuru9 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 the change.
LGTM +1

@github-actions github-actions bot added the community-reviewed-LGTM Applied if there are 2 non-committer approves on a PR. (The submitter cannot approve their own PR.) label Apr 13, 2026
Copy link
Copy Markdown
Contributor Author

@RocMarshal RocMarshal left a comment

Choose a reason for hiding this comment

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

Thanks @spuru9 @mateczagany .
Merging...

@RocMarshal RocMarshal merged commit 5c2a4cc into apache:master Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-reviewed-LGTM Applied if there are 2 non-committer approves on a PR. (The submitter cannot approve their own PR.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants