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
log.Infof("<No wait submission mode> Wait for the event count %f to reach request sent count %f, within 30s", eventsCount, submissionCount)
599
+
previousEventCount:=eventsCount
600
+
log.Infof("<No wait submission mode> Wait for the event count %f to reach request sent count %f", eventsCount, submissionCount)
596
601
for {
602
+
previousEventCount=eventsCount
603
+
eventsCount=getMetricVal(receivedEventsCounter)
604
+
ifpreviousEventCount<eventsCount {
605
+
// reset idle start time if there are new events
606
+
idleStart=time.Now()
607
+
}
597
608
ifeventsCount==submissionCount {
598
609
break
599
610
} elseifeventsCount>submissionCount {
600
611
log.Warnf("The number of events received %f is greater than the number of requests sent %f.", eventsCount, submissionCount)
601
612
break
602
613
}
603
614
604
-
// Check if more than 1 minute has passed
605
-
iftime.Since(tallyStart) >30*time.Second {
606
-
log.Errorf("The number of events received %f doesn't tally up to the number of requests sent %f after %s.", eventsCount, submissionCount, time.Since(time.Unix(pr.startTime, 0)))
615
+
// Check if more than 30 seconds has passed
616
+
iftime.Since(idleStart) >30*time.Second {
617
+
log.Errorf("The number of events received %f doesn't tally up to the number of requests sent %f after 30s idle time, total tally time: %s.", eventsCount, submissionCount, time.Since(time.Unix(pr.startTime, 0)))
0 commit comments