fix(scanner): skip recent IO-error objects (#1860)

Signed-off-by: LoganZ2 <103290230+LoganZ2@users.noreply.github.com>
Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: heihutu <30542132+heihutu@users.noreply.github.com>
Co-authored-by: loverustfs <hello@rustfs.com>
Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
LoganZ2
2026-02-27 22:25:52 +08:00
committed by GitHub
parent 55396f13d4
commit e73b17aff6
5 changed files with 362 additions and 11 deletions
+6
View File
@@ -16,8 +16,10 @@
mod tests {
use crate::config::Opt;
use clap::Parser;
use serial_test::serial;
#[tokio::test]
#[serial]
async fn test_console_cors_configuration() {
// Test CORS configuration parsing
use crate::admin::console::parse_cors_origins;
@@ -42,6 +44,7 @@ mod tests {
}
#[tokio::test]
#[serial]
async fn test_console_tls_configuration() {
// Test TLS configuration options (now uses shared tls_path)
let args = vec!["rustfs", "/tmp/test", "--tls-path", "/path/to/tls"];
@@ -51,6 +54,7 @@ mod tests {
}
#[tokio::test]
#[serial]
async fn test_console_health_check_endpoint() {
// Test that console health check can be called
// This test would need a running server to be comprehensive
@@ -63,6 +67,7 @@ mod tests {
}
#[tokio::test]
#[serial]
async fn test_console_separate_logging_target() {
// Test that console uses separate logging targets
use tracing::info;
@@ -77,6 +82,7 @@ mod tests {
}
#[tokio::test]
#[serial]
async fn test_console_configuration_validation() {
// Test configuration validation
let args = vec![
+8
View File
@@ -57,6 +57,7 @@ mod tests {
}
#[test]
#[serial]
fn test_default_console_configuration() {
// Test that default console configuration is correct
let args = vec!["rustfs", "/test/volume"];
@@ -68,6 +69,7 @@ mod tests {
}
#[test]
#[serial]
fn test_custom_console_configuration() {
// Test custom console configuration
let args = vec![
@@ -88,6 +90,7 @@ mod tests {
}
#[test]
#[serial]
fn test_console_and_endpoint_ports_different() {
// Ensure console and endpoint use different default ports
let args = vec!["rustfs", "/test/volume"];
@@ -107,6 +110,7 @@ mod tests {
}
#[test]
#[serial]
fn test_volumes_and_disk_layout_parsing() {
use rustfs_ecstore::disks_layout::DisksLayout;
@@ -436,6 +440,7 @@ mod tests {
/// Test error handling for invalid ellipses patterns.
#[test]
#[serial]
fn test_invalid_ellipses_patterns() {
// Test case 1: Invalid ellipses format (letters instead of numbers)
let args = vec!["rustfs", "/data/vol{a...z}"];
@@ -458,6 +463,7 @@ mod tests {
}
#[test]
#[serial]
fn test_server_domains_parsing() {
// Test case 1: server domains without ports
let args = vec![
@@ -525,6 +531,7 @@ mod tests {
}
#[test]
#[serial]
fn test_access_key_arguments_mutually_exclusive_cli() {
// Test that CLI args configuration fails on conflict
let args = vec![
@@ -564,6 +571,7 @@ mod tests {
}
#[test]
#[serial]
fn test_secret_key_arguments_mutually_exclusive_cli() {
// Test that CLI args configuration fails on conflict
let args = vec![