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: upgrade opendal #1245

Merged
merged 10 commits into from Mar 28, 2023
Merged

Conversation

v0y4g3r
Copy link
Contributor

@v0y4g3r v0y4g3r commented Mar 26, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Upgrades opendal from 0.27 to 0.30. This is the prerequisite of #1248 .

The major changes are:

  • Constructor of ObjectStore now takes a Builder instead of an Accessor.
  • Object is completely removed from opendal in #1477. Thus lots of file read/write stuff needs rewrite.
  • list/scan now returns a stream of Entry instead of Object.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@v0y4g3r v0y4g3r marked this pull request as ready for review March 26, 2023 11:54
@v0y4g3r v0y4g3r marked this pull request as draft March 26, 2023 12:39
@v0y4g3r v0y4g3r marked this pull request as ready for review March 26, 2023 13:00
@codecov
Copy link

codecov bot commented Mar 26, 2023

Codecov Report

Merging #1245 (bc0858c) into develop (4f15b26) will decrease coverage by 0.28%.
The diff coverage is 73.43%.

@@             Coverage Diff             @@
##           develop    #1245      +/-   ##
===========================================
- Coverage    85.60%   85.32%   -0.28%     
===========================================
  Files          495      495              
  Lines        73397    73378      -19     
===========================================
- Hits         62828    62612     -216     
- Misses       10569    10766     +197     

@v0y4g3r v0y4g3r requested review from evenyag and killme2008 and removed request for evenyag March 27, 2023 02:55
src/object-store/src/cache_policy.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008 killme2008 merged commit 5edd2a3 into GreptimeTeam:develop Mar 28, 2023
11 checks passed
@sunng87 sunng87 linked an issue Mar 28, 2023 that may be closed by this pull request
Comment on lines +73 to +78
let file_full_path = format!("{}{}", self.path, filename);
let _ = self.object_store.stat(&file_full_path).await.context(
error::ListObjectsSnafu {
path: &file_full_path,
},
)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible that a file doesn't exist while listing the data source?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it possible that a file doesn't exist while listing the data source?

OpenDAL always raises an error if target file path does not exist.

paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* chore: upgrade opendal

* chore: finish upgrading opendal

* fix: clippy complaints

* fix some tests

* fix: all unit tests

* chore: rebase develop

* fix: sqlness tests

* optimize imports

* chore: rebase develop

* doc: add todo
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.

Bump OpenDAL to 0.3
4 participants