Skip to content

HDDS-14174. RandomAccessFileChannel.close() should not throws RuntimeException.#9501

Merged
adoroszlai merged 1 commit intoapache:masterfrom
szetszwo:HDDS-14174
Dec 15, 2025
Merged

HDDS-14174. RandomAccessFileChannel.close() should not throws RuntimeException.#9501
adoroszlai merged 1 commit intoapache:masterfrom
szetszwo:HDDS-14174

Conversation

@szetszwo
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Since the file is read-only, it should just log a warning message when closing the underlying resources throwing an exception.

Also add javadoc.

What is the link to the Apache JIRA

HDDS-14174

How was this patch tested?

This is simple changes do not require new tests.

Copy link
Copy Markdown
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

Thanks @szetszwo , the change looks good to me.

@adoroszlai adoroszlai merged commit 33544de into apache:master Dec 15, 2025
43 checks passed
@adoroszlai
Copy link
Copy Markdown
Contributor

Thanks @szetszwo for the patch, @ChenSammi for the review.

@szetszwo
Copy link
Copy Markdown
Contributor Author

@ChenSammi , thanks for reviewing this!

@adoroszlai , thanks for merging this!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants