Skip to content

Commit

Permalink
Rebase on dev, address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bekadavis9 committed Oct 10, 2023
1 parent ef0f10f commit 8d46801
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 14 deletions.
3 changes: 0 additions & 3 deletions test/src/unit-capi-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,6 @@ TEST_CASE("C API: Test config iter", "[capi][config]") {
all_param_values["vfs.s3.connect_timeout_ms"] = "10800";
all_param_values["vfs.s3.connect_max_tries"] = "5";
all_param_values["vfs.s3.connect_scale_factor"] = "25";
all_param_values["vfs.s3.custom_headers."] = "";
all_param_values["vfs.s3.sse"] = "";
all_param_values["vfs.s3.sse_kms_key_id"] = "";
all_param_values["vfs.s3.logging_level"] = "Off";
Expand Down Expand Up @@ -796,7 +795,6 @@ TEST_CASE("C API: Test config iter", "[capi][config]") {
vfs_param_values["s3.connect_timeout_ms"] = "10800";
vfs_param_values["s3.connect_max_tries"] = "5";
vfs_param_values["s3.connect_scale_factor"] = "25";
vfs_param_values["s3.custom_headers."] = "";
vfs_param_values["s3.sse"] = "";
vfs_param_values["s3.sse_kms_key_id"] = "";
vfs_param_values["s3.logging_level"] = "Off";
Expand Down Expand Up @@ -860,7 +858,6 @@ TEST_CASE("C API: Test config iter", "[capi][config]") {
s3_param_values["connect_timeout_ms"] = "10800";
s3_param_values["connect_max_tries"] = "5";
s3_param_values["connect_scale_factor"] = "25";
s3_param_values["custom_headers."] = "";
s3_param_values["sse"] = "";
s3_param_values["sse_kms_key_id"] = "";
s3_param_values["logging_level"] = "Off";
Expand Down
2 changes: 1 addition & 1 deletion tiledb/api/c_api/config/config_api_external.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ TILEDB_EXPORT void tiledb_config_free(tiledb_config_t** config) TILEDB_NOEXCEPT;
* The scale factor for exponential backoff when connecting to S3.
* Any `long` value is acceptable. <br>
* **Default**: 25
* - `vfs.s3.custom_headers.` <br>
* - `vfs.s3.custom_headers.*` <br>
* (Optional) Prefix for custom headers on s3 requests. For each custom
* header, use "vfs.s3.custom_headers.header_key" = "header_value" <br>
* **Optional. No Default**
Expand Down
2 changes: 0 additions & 2 deletions tiledb/sm/config/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ const std::string Config::VFS_S3_CA_PATH = "";
const std::string Config::VFS_S3_CONNECT_TIMEOUT_MS = "10800";
const std::string Config::VFS_S3_CONNECT_MAX_TRIES = "5";
const std::string Config::VFS_S3_CONNECT_SCALE_FACTOR = "25";
const std::string Config::VFS_S3_CUSTOM_HEADERS_;
const std::string Config::VFS_S3_SSE = "";
const std::string Config::VFS_S3_SSE_KMS_KEY_ID = "";
const std::string Config::VFS_S3_REQUEST_TIMEOUT_MS = "3000";
Expand Down Expand Up @@ -457,7 +456,6 @@ const std::map<std::string, std::string> default_config_values = {
"vfs.s3.connect_max_tries", Config::VFS_S3_CONNECT_MAX_TRIES),
std::make_pair(
"vfs.s3.connect_scale_factor", Config::VFS_S3_CONNECT_SCALE_FACTOR),
std::make_pair("vfs.s3.custom_headers.", Config::VFS_S3_CUSTOM_HEADERS_),
std::make_pair("vfs.s3.sse", Config::VFS_S3_SSE),
std::make_pair("vfs.s3.sse_kms_key_id", Config::VFS_S3_SSE_KMS_KEY_ID),
std::make_pair(
Expand Down
6 changes: 0 additions & 6 deletions tiledb/sm/config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,6 @@ class Config {
/** Connect scale factor for exponential backoff. */
static const std::string VFS_S3_CONNECT_SCALE_FACTOR;

/**
* Prefix for custom headers on s3 requests. Each custom header should be set
* with syntax VFS_S3_CUSTOM_HEADERS_KEY = "VALUE"
*/
static const std::string VFS_S3_CUSTOM_HEADERS_;

/** S3 server-side encryption algorithm. */
static const std::string VFS_S3_SSE;

Expand Down
2 changes: 1 addition & 1 deletion tiledb/sm/cpp_api/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ class Config {
* The scale factor for exponential backofff when connecting to S3.
* Any `long` value is acceptable. <br>
* **Default**: 25
* - `vfs.s3.custom_headers.` <br>
* - `vfs.s3.custom_headers.*` <br>
* (Optional) Prefix for custom headers on s3 requests. For each custom
* header, use "vfs.s3.custom_headers.header_key" = "header_value" <br>
* **Optional. No Default**
Expand Down
2 changes: 1 addition & 1 deletion tiledb/sm/filesystem/s3.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct S3Parameters {
, connect_max_tries_(
config.get<int64_t>("vfs.s3.connect_max_tries", Config::must_find))
, connect_scale_factor_(config.get<int64_t>(
"vfs.s3.connect_scale_factor", Config::must_find))]
"vfs.s3.connect_scale_factor", Config::must_find))
, custom_headers_(load_headers(config))
, logging_level_(
config.get<std::string>("vfs.s3.logging_level", Config::must_find))
Expand Down

0 comments on commit 8d46801

Please sign in to comment.