mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 13:16:28 +00:00
@@ -276,7 +276,10 @@ impl HTTPRangeSpec {
|
|||||||
return Ok(range_length);
|
return Ok(range_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
Err(Error::other("range value invalid"))
|
Err(Error::other(format!(
|
||||||
|
"range value invalid: start={}, end={}, expected start <= end and end >= -1",
|
||||||
|
self.start, self.end
|
||||||
|
)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -814,7 +814,7 @@ where
|
|||||||
let mp = MappedPolicy::new(policy);
|
let mp = MappedPolicy::new(policy);
|
||||||
let (_, combined_policy_stmt) = filter_policies(&self.cache, &mp.policies, "temp");
|
let (_, combined_policy_stmt) = filter_policies(&self.cache, &mp.policies, "temp");
|
||||||
if combined_policy_stmt.is_empty() {
|
if combined_policy_stmt.is_empty() {
|
||||||
return Err(Error::other(format!("need policy not found {}", IamError::NoSuchPolicy)));
|
return Err(Error::other(format!("Required policy not found: {}", IamError::NoSuchPolicy)));
|
||||||
}
|
}
|
||||||
|
|
||||||
self.api
|
self.api
|
||||||
|
|||||||
@@ -740,7 +740,7 @@ impl S3 for FS {
|
|||||||
|
|
||||||
if let Some(part_num) = part_number {
|
if let Some(part_num) = part_number {
|
||||||
if part_num == 0 {
|
if part_num == 0 {
|
||||||
return Err(s3_error!(InvalidArgument, "part_number invalid"));
|
return Err(s3_error!(InvalidArgument, "Invalid part number: part number must be greater than 0"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2707,7 +2707,10 @@ impl S3 for FS {
|
|||||||
.finish()
|
.finish()
|
||||||
.map_err(|e| s3_error!(InternalError, "writer output into json error, e: {}", e.to_string()))?;
|
.map_err(|e| s3_error!(InternalError, "writer output into json error, e: {}", e.to_string()))?;
|
||||||
} else {
|
} else {
|
||||||
return Err(s3_error!(InvalidArgument, "unknown output format"));
|
return Err(s3_error!(
|
||||||
|
InvalidArgument,
|
||||||
|
"Unsupported output format. Supported formats are CSV and JSON"
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let (tx, rx) = mpsc::channel::<S3Result<SelectObjectContentEvent>>(2);
|
let (tx, rx) = mpsc::channel::<S3Result<SelectObjectContentEvent>>(2);
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ export RUSTFS_OBS_LOG_DIRECTORY="$current_dir/deploy/logs" # Log directory
|
|||||||
export RUSTFS_OBS_LOG_ROTATION_TIME="minute" # Log rotation time unit, can be "second", "minute", "hour", "day"
|
export RUSTFS_OBS_LOG_ROTATION_TIME="minute" # Log rotation time unit, can be "second", "minute", "hour", "day"
|
||||||
export RUSTFS_OBS_LOG_ROTATION_SIZE_MB=1 # Log rotation size in MB
|
export RUSTFS_OBS_LOG_ROTATION_SIZE_MB=1 # Log rotation size in MB
|
||||||
|
|
||||||
#
|
|
||||||
export RUSTFS_SINKS_FILE_PATH="$current_dir/deploy/logs/rustfs.log"
|
export RUSTFS_SINKS_FILE_PATH="$current_dir/deploy/logs/rustfs.log"
|
||||||
export RUSTFS_SINKS_FILE_BUFFER_SIZE=12
|
export RUSTFS_SINKS_FILE_BUFFER_SIZE=12
|
||||||
export RUSTFS_SINKS_FILE_FLUSH_INTERVAL_MS=1000
|
export RUSTFS_SINKS_FILE_FLUSH_INTERVAL_MS=1000
|
||||||
|
|||||||
Reference in New Issue
Block a user