-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[feature](backup)(cooldown) backup/restore for cooldown data #43642
base: master
Are you sure you want to change the base?
[feature](backup)(cooldown) backup/restore for cooldown data #43642
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
run buildall |
bf24504
to
99971a5
Compare
fe/fe-core/src/main/java/org/apache/doris/backup/BackupMeta.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java
Outdated
Show resolved
Hide resolved
I suggest that in the first version, let the users specify the resource or policy in restore job, no need to recreate them. |
2fba7fa
to
005403a
Compare
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
Outdated
Show resolved
Hide resolved
be/src/runtime/snapshot_loader.cpp
Outdated
} | ||
|
||
std::vector<std::string> remote_index_files; | ||
RETURN_IF_ERROR(list_segment_inverted_index_file(cold_fs, remote_tablet_path, rowset_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be we don't need to list remote files here. We can get index_id in rowset meta, index_version in tablet schema. And use remote_idx_v1_path/remote_idx_v2_path function in storage_policy.h to get the remote path.
13a365e
to
9e2f47b
Compare
run rebuildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TeamCity be ut coverage result: |
796ed9b
to
8a6c454
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
squash pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a huge pr, we should review carefully.
There is some low level change, like abs_path = std::filesystem::path(fmt::format("s3://{}/{}", _bucket, _prefix)) / path;
I am not sure its impact.
RemoteFileSystem::download will call absolute_path two times
when "path" is not absolue, the result will return with double "_prefix" original code:
This function is only effect with S3 file system, the path will be parsed by "S3URI::parse" to get the key. |
What problem does this PR solve?
https://doc.weixin.qq.com/doc/w3_AGkArQbjACc5rBcdFOxQcaBSzESxW?scode=AJEAIQdfAAoRB9aawYAGkArQbjACc
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Currently, backup/resore is not supported for cooldown data.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Feature backup restore cooldown data doris-website#1336
Check List (For Reviewer who merge this PR)