luwei16 commented on code in PR #37293:
URL: https://github.com/apache/doris/pull/37293#discussion_r1670622334


##########
be/src/cloud/cloud_cumulative_compaction.cpp:
##########
@@ -48,7 +48,8 @@ 
CloudCumulativeCompaction::CloudCumulativeCompaction(CloudStorageEngine& engine,
 CloudCumulativeCompaction::~CloudCumulativeCompaction() = default;
 
 Status CloudCumulativeCompaction::prepare_compact() {
-    if (_tablet->tablet_state() != TABLET_RUNNING) {
+    if (_tablet->tablet_state() != TABLET_RUNNING &&
+        dynamic_cast<CloudTablet*>(_tablet.get())->alter_version() == -1) {

Review Comment:
   While waiting for the waterline, the new tablet still cannot do compaction?



-- 
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]

Reply via email to