Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support aliyun oss as object store backend #20

Merged
merged 5 commits into from Jun 10, 2022
Merged

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Jun 7, 2022

Signed-off-by: Ruihang Xia waynestxia@gmail.com

Which issue does this PR close?

Closes #19

Rationale for this change

See #19

What changes are included in this PR?

  • ObjectStore implementor AliyunOSS

Are there any user-facing changes?

Config changed.

Removed:

  • analytical_engine::Config::data_path

Added:

  • analytical_engine::Config::storage
  • analytical_engine::Config::wal_path

How does this change test

Run unit test on a private aliyun OSS deployment.

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia
Copy link
Member Author

waynexia commented Jun 9, 2022

Four failing cases:

  • tests::compaction_test::test_table_compact_current_segment
  • tests::read_write_test::test_db_write_buffer_size
  • tests::read_write_test::test_space_write_buffer_size
  • tests::read_write_test::test_table_write_get_override

Update: all passed

@waynexia waynexia changed the title [WIP] feat: support aliyun oss as object store backend feat: support aliyun oss as object store backend Jun 9, 2022
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
path: sst_path.to_string_lossy().into_owned(),
})?;
LocalFileSystem::new_with_prefix(sst_path).context(OpenObjectStore)
async fn open_storage_local(config: Config) -> Result<LocalFileSystem> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to use the struct in the StorageOptions::Local as the paramater of this function?

}
}

async fn open_storage_aliyun(config: Config) -> Result<impl ObjectStore> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to use the struct in the StorageOptions::Aliyun as the paramater of this function?

upstream = { package = "object_store", version = "0.1.0" }
# oss-rust-sdk = "0.4.0"
oss-rust-sdk = { git = "https://github.com/NoXF/oss-rust-sdk.git", rev = "260e6fc95e06739fc33927a8b575896088a65966" }
snafu = { version = "0.6.10", features = ["backtraces"] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a newline?

@waynexia waynexia self-assigned this Jun 10, 2022
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@waynexia waynexia merged commit 54d3a35 into main Jun 10, 2022
@waynexia waynexia deleted the aliyun-oss branch June 10, 2022 06:43
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* feat: impl object store interface for aliyun oss

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add storage options

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* license header

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* CR refines

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Aliyun OSS
2 participants