Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] fix schema change hang when data loading concurrent with sch…
…ema change (StarRocks#23456) Fixes StarRocks#23452 1. Assume there is a partition, current visible version is 13378, and all loading task is finished. 2. Trigger schema change, it will create new replica, and at the same time, one loading task is trigger and finished, and it's version is 13379. 3. Before send alter replica request, FE check that all loading task is finished, but loading task on new create replica haven't finish yet and V=1, LFV=13379. 4. Alter replica finish on BE, and BE send finish alter replica request back to FE. When call `handleFinishAlterTask`, `checkState` fail because LFV != -1. Signed-off-by: Moonm3n <[email protected]>
- Loading branch information