Skip to content

Commit

Permalink
Adding GCS to release feature flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Jan 11, 2024
1 parent 8e00514 commit 2643797
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 6 additions & 3 deletions quickwit/quickwit-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ release-feature-set = [
"quickwit-indexing/kinesis",
"quickwit-indexing/pulsar",
"quickwit-indexing/vrl",
"quickwit-metastore/azure",
"quickwit-storage/azure",
"quickwit-storage/gcs",
"quickwit-metastore/postgres",
"quickwit-doc-mapper/multilang",
]
Expand All @@ -105,7 +106,8 @@ release-feature-vendored-set = [
"quickwit-indexing/pulsar",
"quickwit-indexing/vrl",
"quickwit-indexing/vendored-kafka",
"quickwit-metastore/azure",
"quickwit-storage/azure",
"quickwit-storage/gcs",
"quickwit-metastore/postgres",
"quickwit-doc-mapper/multilang",
]
Expand All @@ -116,7 +118,8 @@ release-macos-feature-vendored-set = [
"quickwit-indexing/pulsar",
"quickwit-indexing/vrl",
"quickwit-indexing/vendored-kafka-macos",
"quickwit-metastore/azure",
"quickwit-storage/azure",
"quickwit-storage/gcs",
"quickwit-metastore/postgres",
"quickwit-doc-mapper/multilang",
]
1 change: 0 additions & 1 deletion quickwit/quickwit-metastore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ quickwit-doc-mapper = { workspace = true, features = ["testsuite"] }
quickwit-storage = { workspace = true, features = ["testsuite"] }

[features]
azure = ["quickwit-storage/azure"]
ci-test = []
postgres = ["quickwit-proto/postgres", "sea-query", "sea-query-binder", "sqlx"]
testsuite = ["mockall", "tempfile", "quickwit-config/testsuite"]
10 changes: 5 additions & 5 deletions quickwit/quickwit-storage/src/opendal_storage/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

use std::fmt;
use std::ops::Range;
use std::path::{Path, PathBuf};
use std::path::Path;

use async_trait::async_trait;
use bytesize::ByteSize;
Expand All @@ -29,8 +29,8 @@ use tokio::io::{AsyncRead, AsyncWriteExt};

use crate::storage::SendableAsync;
use crate::{
BulkDeleteError, DeleteFailure, OwnedBytes, PutPayload, Storage, StorageError,
StorageErrorKind, StorageResolverError, StorageResult,
BulkDeleteError, OwnedBytes, PutPayload, Storage, StorageError, StorageErrorKind,
StorageResolverError, StorageResult,
};

/// OpenDAL based storage implementation.
Expand Down Expand Up @@ -149,8 +149,8 @@ impl Storage for OpendalStorage {
let storage_error_kind = err.kind();
let storage_error: StorageError = err.into();
bulk_error.failures.insert(
PathBuf::from(&path),
DeleteFailure {
path.to_path_buf(),
crate::DeleteFailure {
code: Some(storage_error_kind.to_string()),
message: Some(storage_error.to_string()),
error: Some(storage_error.clone()),
Expand Down

0 comments on commit 2643797

Please sign in to comment.