Xuanwo opened a new issue, #8849: URL: https://github.com/apache/opendal/issues/8849
> AI-authored issue from a read-only readability audit against `main` (`615a8f24f`), guided by the optimize-for-reading guidelines in #8847. ### Problem `raw::oio::FlatLister` (`core/core/src/raw/oio/list/flat_list.rs:66-212`) has no non-test callers anywhere in the workspace. The live implementation actually used at runtime is `ServicerFlatLister` in `SimulateLayer` (`core/core/src/layers/simulate.rs:522-685`). Leaving an uncalled copy exported under `raw::oio` has already caused real behavioral divergence and reading traps: - #8817 fixed empty subdirectory retention only in `ServicerFlatLister`, while `oio::FlatLister` still retains the old behavior. - `core/core/src/raw/oio/list/flat_list.rs:76-81` still carries a copy-pasted `unsafe impl Sync for FlatLister<S>` safety comment referencing `FsLister`. ### Decision / Options Choose one of two clean directions depending on whether external callers still require `raw::oio::FlatLister` as a public raw utility: 1. **Remove `raw::oio::FlatLister`** if it is no longer needed as a public raw API, keeping `ServicerFlatLister` self-contained inside `core/core/src/layers/simulate.rs` with zero cross-module jumps. 2. **Consolidate onto one implementation** if `raw::oio::FlatLister` must remain public: `Arc<dyn ServiceDyn>` now implements `Service` (`core/core/src/raw/service.rs:486`), so `SimulateLayer` and `oio::FlatLister` can share a single implementation (including the #8817 empty subdirectory fix and corrected safety comment). Note: If option 1 changes the public `opendal::raw::oio` surface, confirm maintainer direction before deleting the export. -- 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]
