@@ -49,7 +49,7 @@ func (tc *Controller) syncPredictionStatus(ctx context.Context, tsPrediction *pr
4949 predictionStart := windowStart
5050 // double the time to predict so that crd consumer always see time series range [now, now + PredictionWindowSeconds] in PredictionWindowSeconds window
5151 predictionEnd := predictionStart .Add (time .Duration (tsPrediction .Spec .PredictionWindowSeconds ) * time .Second * 2 )
52- // doPredict必然发生在initFromHistory之后,因为doPredict中会通过WithQuery向predictor注册查询,这个注册过程是串行的
52+ // doPredict must happen after initFromHistory
5353 predictedData , predictErr := tc .doPredict (tsPrediction , predictionStart , predictionEnd )
5454 newStatus .PredictionMetrics = predictedData
5555 if predictErr != nil {
@@ -178,10 +178,10 @@ func (tc *Controller) doPredict(tsPrediction *predictionapi.TimeSeriesPrediction
178178 continue
179179 }
180180 predictedData := CommonTimeSeries2ApiTimeSeries (data )
181- if klog .V (4 ).Enabled () {
181+ if klog .V (6 ).Enabled () {
182182 apiDataBytes , err1 := json .Marshal (predictedData )
183183 dataBytes , err2 := json .Marshal (data )
184- klog .V (4 ).Infof ("DoPredict predicted data details, key: %v, queryExpr: %v, apiData: %v, predictData: %v, errs: %+v" , klog .KObj (tsPrediction ), namer .BuildUniqueKey (), string (apiDataBytes ), string (dataBytes ), []error {err1 , err2 })
184+ klog .V (6 ).Infof ("DoPredict predicted data details, key: %v, queryExpr: %v, apiData: %v, predictData: %v, errs: %+v" , klog .KObj (tsPrediction ), namer .BuildUniqueKey (), string (apiDataBytes ), string (dataBytes ), []error {err1 , err2 })
185185 }
186186 status .Prediction = predictedData
187187
0 commit comments