Xuanwo opened a new pull request, #8756: URL: https://github.com/apache/opendal/pull/8756
# Which issue does this PR close? Closes #. # Rationale for this change `CompfsLazyWriter::abort` initialized the inner writer before delegating cancellation. Initialization opens the target with `truncate(!append)`, so aborting an unused writer could truncate an existing file or create a target file and its parent directories before returning `Unsupported`. # What changes are included in this PR? `CompfsLazyWriter::abort` now returns `Unsupported` directly when the writer has not been initialized. If the inner writer exists, abort still delegates to it. Initialization remains in `write` and `close`, so closing an unused writer still creates an empty file. Add two regression tests against real temporary roots: - Aborting an unused writer leaves an existing file's bytes unchanged and returns `Unsupported`. - Aborting an unused writer for a missing path does not create the file or its parent directories. # Are there any user-facing changes? Aborting an unused compfs writer no longer modifies the target path. It continues to return `Unsupported`. # Breaking changes # AI Usage Statement - Harness: pi coding agent - Model: group/deepseek - Effort: max - Role: AI-assisted source investigation, implementation, regression tests, and validation. The accountable human contributor remains responsible for the change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
