-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feature](cold_on_s3) Show remote data usage via SHOW BACKENDS and SHOW TABLETS statements #11450
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
Conversation
| .add("TabletId").add("ReplicaId").add("BackendId").add("SchemaHash").add("Version") | ||
| .add("LstSuccessVersion").add("LstFailedVersion").add("LstFailedTime") | ||
| .add("DataSize").add("RowCount").add("State") | ||
| .add("LocalDataSize").add("RemoteDataSize").add("RowCount").add("State") |
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.
This would cause compatibility problems, would using DataSize also work?
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.
Of course we can use DataSize here, but I think it may be a little confusing when users find DataSize is 0.
16f81b5 to
f4a8caf
Compare
f4a8caf to
1481631
Compare
1481631 to
82e2c5d
Compare
| auto key = get_key(path); | ||
| auto fs_path = Path(_s3_conf.endpoint) / _s3_conf.bucket / key; | ||
| *reader = std::make_unique<S3FileReader>(std::move(fs_path), fsize, std::move(key), | ||
| *reader = std::make_shared<S3FileReader>(std::move(fs_path), fsize, std::move(key), |
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.
Why change to shared ?
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.
This is a typo(not bug) fix, as function signature is S3FileSystem::open_file(const Path& path, FileReaderSPtr* reader)
| .add("SystemDecommissioned").add("ClusterDecommissioned").add("TabletNum") | ||
| .add("DataUsedCapacity").add("AvailCapacity").add("TotalCapacity").add("UsedPct") | ||
| .add("MaxDiskUsedPct").add("Tag").add("ErrMsg").add("Version").add("Status") | ||
| .add("MaxDiskUsedPct").add("Tag").add("ErrMsg").add("Version").add("Status").add("RemoteUsedCapacity") |
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.
Better to add RemoteUsedCapacity right after DataUsedCapacity
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.
Some unit tests and regression tests rely on the subscript of these data. If RemoteUsedCapacity is inserted into the middle, the tests will fail.
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.
done
| public static final ImmutableList<String> TITLE_NAMES = new ImmutableList.Builder<String>().add("ReplicaId") | ||
| .add("BackendId").add("Version").add("LstSuccessVersion").add("LstFailedVersion").add("LstFailedTime") | ||
| .add("SchemaHash").add("LocalDataSize").add("RowCount").add("State").add("IsBad") | ||
| .add("VersionCount").add("PathHash").add("MetaUrl").add("CompactionStatus").add("RemoteDataSize").build(); |
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.
Add RemoteDataSize right after LocalDataSize.
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.
done
| .add("LocalDataSize").add("RowCount").add("State") | ||
| .add("LstConsistencyCheckTime").add("CheckVersion") | ||
| .add("VersionCount").add("PathHash").add("MetaUrl").add("CompactionStatus") | ||
| .add("VersionCount").add("PathHash").add("MetaUrl").add("CompactionStatus").add("RemoteDataSize") |
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.
after LocalDataSize
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.
done
82e2c5d to
97f7d09
Compare
morningman
left a comment
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
97f7d09 to
dd01403
Compare
dd01403 to
8d673db
Compare
Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...