dataroaring commented on code in PR #53540:
URL: https://github.com/apache/doris/pull/53540#discussion_r2344013772
##########
be/src/cloud/cloud_tablet.h:
##########
@@ -366,7 +407,28 @@ class CloudTablet final : public BaseTablet {
std::vector<std::pair<std::vector<RowsetId>, DeleteBitmapKeyRanges>>
_unused_delete_bitmap;
// for warm up states management
- std::unordered_map<RowsetId, std::pair<WarmUpState, int32_t>>
_rowset_warm_up_states;
+ struct RowsetWarmUpInfo {
+ WarmUpState state;
+ int64_t num_segments = 0;
+ int64_t num_inverted_idx = 0;
+ int64_t num_segments_warmed_up = 0;
+ int64_t num_inverted_idx_warmed_up = 0;
+ std::chrono::steady_clock::time_point start_tp;
+
+ void done(int64_t num_segments, int64_t num_inverted_idx) {
+ num_segments_warmed_up += num_segments;
+ num_inverted_idx_warmed_up += num_inverted_idx;
+ }
+
+ bool has_finished() const {
Review Comment:
We should handle ann index later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]