Lchangliang commented on code in PR #37293:
URL: https://github.com/apache/doris/pull/37293#discussion_r1677483354
##########
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:
_tablet->tablet_state() is always not equals TABLET_RUNNING until the schema
change done. So this condition is not concerned with schema change job
intermediate state.
--
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]