mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-05 19:55:37 +00:00
chore: merge main after ECStore compile repair
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -309,7 +309,7 @@ fn classify_bucket_default_sse_lookup(
|
|||||||
) -> S3Result<Option<(ServerSideEncryptionConfiguration, OffsetDateTime)>> {
|
) -> S3Result<Option<(ServerSideEncryptionConfiguration, OffsetDateTime)>> {
|
||||||
match lookup {
|
match lookup {
|
||||||
Ok(config) => Ok(Some(config)),
|
Ok(config) => Ok(Some(config)),
|
||||||
Err(err) if err == StorageError::ConfigNotFound => Ok(None),
|
Err(StorageError::ConfigNotFound) => Ok(None),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
let api_error = ApiError::from(err);
|
let api_error = ApiError::from(err);
|
||||||
error!(
|
error!(
|
||||||
|
|||||||
@@ -867,7 +867,6 @@ fn test_retry_drain_bounds_each_peer_round_to_one_small_request_chain() {
|
|||||||
r#type: "tags".to_string(),
|
r#type: "tags".to_string(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}],
|
}],
|
||||||
..Default::default()
|
|
||||||
};
|
};
|
||||||
let make = RetryDrainAction::BucketOpReplay {
|
let make = RetryDrainAction::BucketOpReplay {
|
||||||
operation: SITE_REPLICATION_BUCKET_OP_MAKE_WITH_VERSIONING.to_string(),
|
operation: SITE_REPLICATION_BUCKET_OP_MAKE_WITH_VERSIONING.to_string(),
|
||||||
@@ -973,7 +972,7 @@ fn test_lightweight_bucket_retry_plan_orders_real_metadata_and_counts_it() {
|
|||||||
operator_replication.rules.push(operator_rule("operator-backup"));
|
operator_replication.rules.push(operator_rule("operator-backup"));
|
||||||
let mut bucket_with_operator_rule = bucket;
|
let mut bucket_with_operator_rule = bucket;
|
||||||
bucket_with_operator_rule.replication_config =
|
bucket_with_operator_rule.replication_config =
|
||||||
Some(BASE64_STANDARD.encode_to_string(&serialize(&operator_replication).expect("operator replication config")));
|
Some(BASE64_STANDARD.encode_to_string(serialize(&operator_replication).expect("operator replication config")));
|
||||||
let plan = site_replication_bucket_retry_plan_from_info(&bucket_with_operator_rule, false).expect("targeted retry plan");
|
let plan = site_replication_bucket_retry_plan_from_info(&bucket_with_operator_rule, false).expect("targeted retry plan");
|
||||||
assert!(
|
assert!(
|
||||||
plan.bucket_items.iter().any(|item| item.r#type == "replication-config"),
|
plan.bucket_items.iter().any(|item| item.r#type == "replication-config"),
|
||||||
@@ -1050,7 +1049,7 @@ fn test_reachable_probe_promotion_is_fenced_by_the_observed_event() {
|
|||||||
.peers
|
.peers
|
||||||
.insert("remote".to_string(), peer("remote", "https://remote.example.com"));
|
.insert("remote".to_string(), peer("remote", "https://remote.example.com"));
|
||||||
|
|
||||||
assert_eq!(mark_reachable_deferred_retry_events(&mut state, &[recovered.clone()]), 1);
|
assert_eq!(mark_reachable_deferred_retry_events(&mut state, std::slice::from_ref(&recovered)), 1);
|
||||||
assert_eq!(state.retry_queue[0].updated_at, None);
|
assert_eq!(state.retry_queue[0].updated_at, None);
|
||||||
assert!(!state.retry_queue[0].peer_unreachable);
|
assert!(!state.retry_queue[0].peer_unreachable);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
Reference in New Issue
Block a user