You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// num := int(atomic.LoadInt32(&TestCheckWorkerNumber))
1143
-
// if num != 0 {
1144
-
// if num > len(kvRanges) {
1145
-
// if len(idxWorkers) != len(kvRanges) {
1146
-
// return errors.Errorf("check index worker num error, len kv ranges is: %v, check index worker num is: %v, actual index num is: %v", len(kvRanges), num, len(idxWorkers))
1147
-
// }
1148
-
// } else if num != len(idxWorkers) {
1149
-
// return errors.Errorf("check index worker num error, len kv ranges is: %v, check index worker num is: %v, actual index num is: %v", len(kvRanges), num, len(idxWorkers))
failpoint.Return(errors.Errorf("check index worker num error, len kv ranges is: %v, check index worker num is: %v, actual index num is: %v", len(kvRanges), num, len(idxWorkers)))
1146
+
}
1147
+
} elseifnum!=len(idxWorkers) {
1148
+
failpoint.Return(errors.Errorf("check index worker num error, len kv ranges is: %v, check index worker num is: %v, actual index num is: %v", len(kvRanges), num, len(idxWorkers)))
1149
+
}
1150
+
TestCheckWorkerNumCh<-struct{}{}
1151
+
}
1152
+
}
1153
+
})
1154
1154
1155
1155
logutil.Logger(ddlLogCtx).Info("[ddl] start add index workers to reorg index", zap.Int("workerCnt", len(idxWorkers)), zap.Int("regionCnt", len(kvRanges)), zap.Int64("startHandle", startHandle), zap.Int64("endHandle", endHandle))
0 commit comments