Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mzygQAQ
Copy link
Contributor

@mzygQAQ mzygQAQ commented Apr 30, 2025

Which issue does this PR close?

Closes #6125.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@mzygQAQ mzygQAQ requested a review from xyjixyjixyji as a code owner April 30, 2025 12:30
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels Apr 30, 2025
@mzygQAQ
Copy link
Contributor Author

mzygQAQ commented Apr 30, 2025

There are still 2 pending items:

  1. Need breaking-changes label.
  2. I notice that the go-binding use c-binding, so go-binding also should be change, but I'm not familiar with the Golang binding part. @Xuanwo

Signed-off-by: Your Name <[email protected]>
@mzygQAQ mzygQAQ force-pushed the feat-c-binding-writer-close branch from acb76e9 to a613a65 Compare April 30, 2025 12:43
@Xuanwo Xuanwo changed the title feat(bindings/c): extract the writer closing logic from opendal_writer_free refactor(bindings/c)!: extract the writer closing logic from opendal_writer_free May 5, 2025
@Xuanwo
Copy link
Member

Xuanwo commented May 6, 2025

Also cc @yuchanns, it looks like we need to collaborate on this. Would you like to push your changes for the Go bindings to this branch directly?

@yuchanns
Copy link
Member

yuchanns commented May 6, 2025

Sure. Leave it to me.

Properly implement Writer.Close() to ensure resources are freed and underlying writer is closed correctly. This change adds proper error handling and resource cleanup.

Signed-off-by: Hanchin Hsieh <[email protected]>
@yuchanns yuchanns requested a review from Xuanwo as a code owner May 6, 2025 05:24
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels May 6, 2025
@yuchanns
Copy link
Member

yuchanns commented May 6, 2025

Now it's fixed. BTW: This is not a breaking change as to Go binding.

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you all for working on this!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 6, 2025
@Xuanwo Xuanwo merged commit b95f137 into apache:main May 6, 2025
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-changes lgtm This PR has been approved by a maintainer releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bindings/c: write may fail, but the error is silently ignored.

3 participants