You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "chitralverma (via GitHub)" <gi...@apache.org> on 2023/09/18 07:54:52 UTC
[GitHub] [incubator-opendal] chitralverma opened a new issue, #3111: Issue with listing with metadata in blocking mode
chitralverma opened a new issue, #3111:
URL: https://github.com/apache/incubator-opendal/issues/3111
Possible regression bug in the 0.4.0 version - Seems like the metakeys are not propagated with the blocking operators correctly compared to the usual async counterpart.
Using commit -` rev = "32d13996925f36c639b5efa63316c62f4874a497"`
- In regular async mode - metadata with`FlagSet(Complete | Mode | ContentLength | LastModified)` for files and `FlagSet(Complete | Mode)` for directories
- In blocking mode - metadata with `FlagSet(Mode)` for files and `FlagSet(Complete | Mode)` for directories is returned.
Please see the 2 tests below as a reproducible example of this.
```
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn sync_list() {
let mut builder = Fs::default();
builder.root("/");
let op = Operator::new(builder).unwrap().finish();
let paths = op
.blocking()
.list_with("/Users/chitral/test_data/")
.metakey(Metakey::ContentLength | Metakey::Mode)
.delimiter("")
.call()
.unwrap();
// returns metadata with FlagSet(Mode) for files and FlagSet(Complete | Mode) for directories
dbg!(&paths);
dbg!(&paths.len());
}
#[tokio::test]
async fn async_list() {
let mut builder = Fs::default();
builder.root("/");
let op = Operator::new(builder).unwrap().finish();
let paths = op
.list_with("/Users/chitral/test_data/")
.metakey(Metakey::ContentLength | Metakey::Mode)
.delimiter("")
.await
.unwrap();
// returns metadata with FlagSet(Complete | Mode | ContentLength | LastModified) for files
// and FlagSet(Complete | Mode) for directories
dbg!(&paths);
dbg!(&paths.len());
}
}
```
--
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
[GitHub] [incubator-opendal] Xuanwo commented on issue #3111: Issue in listing with metadata in blocking mode
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #3111:
URL: https://github.com/apache/incubator-opendal/issues/3111#issuecomment-1723091639
Thanks a lot! We will give it a fix.
--
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
[GitHub] [incubator-opendal] chitralverma commented on issue #3111: Issue in listing with metadata in blocking mode
Posted by "chitralverma (via GitHub)" <gi...@apache.org>.
chitralverma commented on issue #3111:
URL: https://github.com/apache/incubator-opendal/issues/3111#issuecomment-1722913201
FYI, @Xuanwo
--
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
[GitHub] [incubator-opendal] Xuanwo closed issue #3111: Issue in listing with metadata in blocking mode
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #3111: Issue in listing with metadata in blocking mode
URL: https://github.com/apache/incubator-opendal/issues/3111
--
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