You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2026/06/01 09:43:46 UTC
[I] read: avoid repeated open and close for handle based services [opendal]
Xuanwo opened a new issue, #7659:
URL: https://github.com/apache/opendal/issues/7659
OpenDAL's current raw read path models `Access::read(path, OpRead { range, .. })` as opening one concrete range stream.
This works naturally for HTTP object stores because each range read is a separate request. However, handle based services such as `fs`, `hdfs`, `sftp`, and `monoiofs` can reuse an opened handle and execute multiple positioned reads against it. The current core reader planner still calls `Access::read` for every planned range, so those services repeatedly open and close handles for workloads like `Reader::read`, `Reader::fetch`, chunked reads, and seek based async readers.
We should change the raw read contract so `Access::read(path, OpRead)` returns a reusable raw reader for the path and read condition set, and move byte ranges to methods on that returned reader.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] read: avoid repeated open and close for handle based services [opendal]
Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo closed issue #7659: read: avoid repeated open and close for handle based services
URL: https://github.com/apache/opendal/issues/7659
--
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: [I] read: avoid repeated open and close for handle based services [opendal]
Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo commented on issue #7659:
URL: https://github.com/apache/opendal/issues/7659#issuecomment-7050894236
*AI-generated maintenance note*
Thanks for raising this. #7678 moved range selection onto a reusable raw reader. #7796 then made `fs`, `compfs`, `hdfs`, `hdfs-native`, and `monoiofs` reuse one lazily opened handle across range reads on the same reader. The shared handle logic lives in [`position_read.rs`](https://github.com/apache/opendal/blob/main/core/core/src/raw/oio/read/position_read.rs).
SFTP still opens a separate stream per range so each stream has its own cursor, as allowed by [RFC-7660](https://github.com/apache/opendal/blob/main/core/core/src/docs/rfcs/7660_move_read_range_to_reader.md#handle-based-services). This issue is now closed as completed.
--
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