app/vminsert: correctly stop StopIngestionRateLimiter before vminsert.Stop in vmsingle shutdown

vmsingle shuts down vminsert before closing the ingestion rate limiter, even though the rate limiter API explicitly requires the opposite order to unblock callers. vminsert.Stop() waits for unmarshal workers, which can be blocked in ingestionRateLimiter.Register() when the limit is hit.
This commit is contained in:
cubic-dev-ai[bot]
2026-04-16 22:49:11 +02:00
committed by GitHub
parent ad85524fb1
commit aa94652ec3
2 changed files with 2 additions and 1 deletions

View File

@@ -118,8 +118,8 @@ func main() {
logger.Fatalf("cannot stop the webservice: %s", err)
}
logger.Infof("successfully shut down the webservice in %.3f seconds", time.Since(startTime).Seconds())
vminsert.Stop()
vminsertcommon.StopIngestionRateLimiter()
vminsert.Stop()
vmstorage.Stop()
vmselect.Stop()