You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2026/09/08 08:37:39 UTC

[PR] perf(services/gdrive): coalesce directory creation by parent and name [opendal]

tisonkun opened a new pull request, #8257:
URL: https://github.com/apache/opendal/pull/8257

   # Which issue does this PR close?
   
   None.
   
   # Rationale for this change
   
   `GdrivePathIndex::ensure_dir` holds one mutex across every directory lookup and creation request in a path. A pending request therefore prevents unrelated directory paths from progressing.
   
   # What changes are included in this PR?
   
   Replace the global directory-creation mutex with `asyncband::singleflight::Group`, keyed by parent ID and directory name for each path component. Publish successful IDs to the existing path cache before completing the flight, and retain stale-ancestor refresh and retry behavior.
   
   Deterministic tests cover independent paths, shared ancestors, and creator cancellation. The independent-path test fails with the original global mutex and passes with this change.
   
   Validation: all 15 service unit tests, both doc tests, and Clippy with `-D warnings`.
   
   # Are there any user-facing changes?
   
   Directory creation through an operator and its clones can progress concurrently for independent paths while coordinating shared ancestors. Cached path resolution and its invalidation behavior remain in the path index.
   
   # AI Usage Statement
   
   AI assisted with the implementation, coordination tests, and PR draft. Validation covers the path-index component; live Google Drive testing has not been performed because service credentials were unavailable.
   


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf(services/gdrive): coalesce directory creation by parent and name [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #8257:
URL: https://github.com/apache/opendal/pull/8257


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org