[cherry-pick](branch-2.1) fix inverted index format is lost during a schema change #36059 (#36100)

This commit is contained in:
Sun Chenyang
2024-06-12 23:06:51 +08:00
committed by GitHub
parent cc7ab2b9fe
commit 3a3c8cd9ee
4 changed files with 153 additions and 2 deletions

View File

@ -288,7 +288,7 @@ public class SchemaChangeJobV2 extends AlterJobV2 {
if (this.storageFormat != null) {
createReplicaTask.setStorageFormat(this.storageFormat);
}
createReplicaTask.setInvertedIndexStorageFormat(tbl.getInvertedIndexStorageFormat());
batchTask.addTask(createReplicaTask);
} // end for rollupReplicas
} // end for rollupTablets

View File

@ -1100,7 +1100,7 @@ public class RestoreJob extends AbstractJob {
localTbl.getTimeSeriesCompactionLevelThreshold(),
localTbl.storeRowColumn(),
binlogConfig);
task.setInvertedIndexStorageFormat(localTbl.getInvertedIndexStorageFormat());
task.setInRestoreMode(true);
batchTask.addTask(task);
}

View File

@ -855,6 +855,8 @@ public class ReportHandler extends Daemon {
binlogConfig);
createReplicaTask.setIsRecoverTask(true);
createReplicaTask.setInvertedIndexStorageFormat(olapTable
.getInvertedIndexStorageFormat());
createReplicaBatchTask.addTask(createReplicaTask);
} else {
// just set this replica as bad