Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/keplor-server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ impl PipelineServer {
// Validate S3 connectivity at startup — fail fast on
// bad credentials instead of discovering errors hours
// later on the first archive cycle.
if let Err(e) = archiver.probe() {
if let Err(e) = archiver.probe().await {
tracing::error!(
error = %e,
"S3 connectivity check failed — archival disabled. \
Expand Down
4 changes: 2 additions & 2 deletions crates/keplor-store/src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ impl Archiver {
/// Call at startup to fail fast on invalid credentials or
/// unreachable endpoints instead of discovering errors hours
/// later on the first archive cycle.
pub fn probe(&self) -> Result<(), StoreError> {
pub async fn probe(&self) -> Result<(), StoreError> {
let probe_path = ObjPath::from(format!("{}/_probe", self.prefix));
// A HEAD on a non-existent key returns 404, not an auth error.
// An auth failure returns 403. Both are valid S3 responses.
match tokio::runtime::Handle::current().block_on(self.client.head(&probe_path)) {
match self.client.head(&probe_path).await {
Ok(_) => Ok(()),
Err(object_store::Error::NotFound { .. }) => Ok(()), // 404 = reachable
Err(e) => Err(StoreError::ArchiveS3(format!("probe failed: {e}"))),
Expand Down
Loading