wjones127 commented on code in PR #4060: URL: https://github.com/apache/arrow-rs/pull/4060#discussion_r1201366742
########## object_store/src/lib.rs: ########## @@ -1119,6 +1189,59 @@ mod tests { assert_eq!(actual, expected, "{prefix:?} - {offset:?}"); } + // Test bulk delete + let paths = vec![ + Path::from("a/a.file"), + Path::from("a/a/b.file"), + Path::from("aa/a.file"), + Path::from("ab/a.file"), + Path::from("a/😀.file"), + ]; + + let out_paths = storage + .delete_stream(futures::stream::iter(paths.clone()).boxed()) + .buffered(5) + .map_ok(futures::stream::iter) + .try_flatten() + .try_collect::<Vec<_>>() + .await + .unwrap(); + + for path in &paths { + let err = storage.head(path).await.unwrap_err(); + assert!(matches!(err, crate::Error::NotFound { .. }), "{}", err); + } + + // Some object stores return results out of order (for example, S3) Review Comment: That's fair. It will also make it easier to write a test with mixed success and failure. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org