mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 16:37:07 +00:00
test(tiering): accept strict missing journal errors
This commit is contained in:
@@ -9778,7 +9778,17 @@ mod tests {
|
|||||||
Ok(_) => panic!("unknown remote version state must not persist a delete journal"),
|
Ok(_) => panic!("unknown remote version state must not persist a delete journal"),
|
||||||
Err(err) => err,
|
Err(err) => err,
|
||||||
};
|
};
|
||||||
assert!(matches!(legacy_err, StorageError::FileNotFound));
|
assert!(
|
||||||
|
matches!(
|
||||||
|
&legacy_err,
|
||||||
|
StorageError::FileNotFound
|
||||||
|
| StorageError::ObjectNotFound(_, _)
|
||||||
|
| StorageError::FileVersionNotFound
|
||||||
|
| StorageError::VersionNotFound(_, _, _)
|
||||||
|
| StorageError::VolumeNotFound
|
||||||
|
),
|
||||||
|
"unknown remote version state must leave no journal, got {legacy_err:?}"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn put_real_cold_fill_object(store: &Arc<ECStore>, bucket: &str, object: &str, body: &[u8]) -> ObjectInfo {
|
async fn put_real_cold_fill_object(store: &Arc<ECStore>, bucket: &str, object: &str, body: &[u8]) -> ObjectInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user