Xuanwo opened a new pull request, #8881: URL: https://github.com/apache/opendal/pull/8881
# Which issue does this PR close? Closes #8849. # Rationale for this change `raw::oio::FlatLister` had no non-test callers across the workspace and had already diverged from the active `ServicerFlatLister` in `SimulateLayer` (missing the #8817 empty subdirectory fix and keeping a stale `unsafe impl Sync` comment referencing `FsLister`). In addition, `ServicerFlatLister::new` eagerly constructed `oio::Entry::new(path, MetadataBuilder::dir().build())` from the caller-supplied path before invoking `srv.list`. Paths at or above the 64 KiB compact metadata block limit panicked in `CompactValues` instead of reaching the underlying service or returning an error (same class as #8830). # What changes are included in this PR? - Remove `core/core/src/raw/oio/list/flat_list.rs` and its `raw::oio::FlatLister` export from `core/core/src/raw/oio/list/mod.rs`. - Migrate the unique active-directory cancellation test from `flat_list.rs` into `core/core/src/layers/simulate.rs` (`servicer_flat_lister_preserves_an_active_directory_when_cancelled`). - Update `ServicerFlatLister` in `core/core/src/layers/simulate.rs` to hold an unvalidated initial directory path in `PendingDir::Initial(String)`, deferring `oio::Entry` construction until `srv.list` succeeds and produces entries, and returning `ErrorKind::Unexpected` if an oversized initial directory path would exceed the compact metadata limit. - Add `servicer_flat_lister_handles_oversized_caller_path` regression test covering oversized directory paths, oversized prefixes, backend listing errors, and non-empty responses under an oversized path. - Update the stale `FlatLister` comment in `core/services/gdrive/src/lister.rs` and document the removal in `core/core/src/docs/upgrade.md`. # Are there any user-facing changes? Yes. `opendal::raw::oio::FlatLister` (and `opendal_core::raw::oio::FlatLister`) is removed; documented in `core/core/src/docs/upgrade.md`. # Breaking changes Affected packages: core Migration: - Remove direct usage of `raw::oio::FlatLister` and rely on `SimulateLayer` (enabled automatically by the default `auto-simulate` feature) for simulated recursive listing on services without native recursive listing support. # AI Usage Statement - Harness: pi / T3 Code - Model: Gemini 4 Neon - Effort: High - Role: Implemented the `raw::oio::FlatLister` removal, `ServicerFlatLister` deferred entry construction fix, regression tests, and upgrade guide update under maintainer direction (Option A for #8849). Verified locally with pre-fix panic reproduction, unit tests, doc tests, rustdoc, and clippy. -- 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]
