[Bugfix](light-shema-change) fix _finish_clone dead lock (#11823)

In engine_clone_task.cpp, it use tablet->tablet_schema() to create rowset, but in the method, it need a lock that already locked in engine_clone_task.cpp:514. It use cloned_tablet_meta->tablet_schema() originally, but modified in #11131. It need to revert to use cloned_tablet_meta->tablet_schema().
This commit is contained in:
Lightman
2022-08-17 09:10:08 +08:00
committed by GitHub
parent a07e153419
commit 3e13b7d2c2
5 changed files with 9 additions and 8 deletions

View File

@ -401,7 +401,7 @@ public class RollupJobV2 extends AlterJobV2 implements GsonPostProcessable {
AlterReplicaTask rollupTask = new AlterReplicaTask(rollupReplica.getBackendId(), dbId, tableId,
partitionId, rollupIndexId, baseIndexId, rollupTabletId, baseTabletId,
rollupReplica.getId(), rollupSchemaHash, baseSchemaHash, visibleVersion, jobId,
JobType.ROLLUP, defineExprs, descTable, null);
JobType.ROLLUP, defineExprs, descTable, tbl.getSchemaByIndexId(baseIndexId));
rollupBatchTask.addTask(rollupTask);
}
}