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 2024/12/18 04:50:04 UTC
[I] new feature: Returning metadata while reading [opendal]
Xuanwo opened a new issue, #5425:
URL: https://github.com/apache/opendal/issues/5425
### Feature Description
Most object storage services will return metadata while reading data, it could be great if opendal can support it.
### Problem and Solution
Returning metadata while reading data.
### Additional Context
OpenDAL used to support it but removed it for handling concurrent reading.
### Are you willing to contribute to the development of this feature?
- [ ] Yes, I am willing to contribute to the development of this feature.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "shbhmrzd (via GitHub)" <gi...@apache.org>.
shbhmrzd commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2552834248
Hi, I would like to work on this. Thank you!
--
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] new feature: Returning metadata while reading [opendal]
Posted by "meteorgan (via GitHub)" <gi...@apache.org>.
meteorgan commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2740743963
I'll take on this issue and start by drafting an RFC. I've taken a quick look at the related code and docs, and it looks like this might be a bit of tricky task, we may have a bunch of details to discuss.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2724786777
Hi, @meteorgan, would you like to update this issue to reflect the latest status?
--
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] new feature: Returning metadata while reading [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2725017882
Oh, I see. I missed this one with writing return metadata.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "shbhmrzd (via GitHub)" <gi...@apache.org>.
shbhmrzd commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2553188895
Sure, let me work on that first.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #5425: new feature: Returning metadata while reading
URL: https://github.com/apache/opendal/issues/5425
--
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] new feature: Returning metadata while reading [opendal]
Posted by "suyanhanx (via GitHub)" <gi...@apache.org>.
suyanhanx closed issue #5425: new feature: Returning metadata while reading
URL: https://github.com/apache/opendal/issues/5425
--
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] new feature: Returning metadata while reading [opendal]
Posted by "suyanhanx (via GitHub)" <gi...@apache.org>.
suyanhanx commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-5644140118
implement by https://github.com/apache/opendal/pull/7624
--
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] new feature: Returning metadata while reading [opendal]
Posted by "meteorgan (via GitHub)" <gi...@apache.org>.
meteorgan commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2724883166
> Hi, [@meteorgan](https://github.com/meteorgan), would you like to update this issue to reflect the latest status?
I'm afraid we haven't made any progress on this issue so far. @shbhmrzd are you still interested in it ? If not, I can propose an RFC in the next few days.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2553174824
> Hi, I would like to work on this. Thank you!
Hi, would you like to propose an RFC first? It will be a big breaking changes for read API.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2781462998
I'm thinking about this for a while. One possible idea is we can store an `LazyCell` in `Reader` which can only be filled once users start a real read.
There are two possible API design:
```rust
impl Reader {
fn metadata(&self) -> Option<&Metadata>;
async fn metadata(&self) -> &Metadata;
}
```
for `fn metadata(&self) -> Option<&Metadata>`:
Reader always return `None` if we don't know about it, otherwise returns `Some(&Metadata)`.
This one is super clear but might be a bit not useful.
for `async fn metadata(&self) -> &Metadata`:
Reader can start a `stat` call internally if the metadata is not know yet.
This one is easy to use but have the following two problems:
- Hidden API call happened.
- `stat` can return error but there is no way to handle it.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2765982716
Hi, @meteorgan, we can continue the discussion here.
--
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] new feature: Returning metadata while reading [opendal]
Posted by "shbhmrzd (via GitHub)" <gi...@apache.org>.
shbhmrzd commented on issue #5425:
URL: https://github.com/apache/opendal/issues/5425#issuecomment-2725494302
Hi @meteorgan @Xuanwo
Apologies for the delay. I’d love to work on this but can’t dedicate time now due to work commitments. Please feel free to proceed.
--
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