Skip to content

Commit

Permalink
Merge branch 'release-7.5' into cherry-pick-7722-to-release-7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot[bot] authored Apr 3, 2024
2 parents 1fbab5c + dee209b commit a410d05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions client/resource_group/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ func (c *ResourceGroupsController) IsBackgroundRequest(ctx context.Context,
resourceGroupName, requestResource string) bool {
gc, err := c.tryGetResourceGroup(ctx, resourceGroupName)
if err != nil {
failedRequestCounter.WithLabelValues(resourceGroupName).Inc()
return false
}

Expand All @@ -576,7 +575,6 @@ func (c *ResourceGroupsController) checkBackgroundSettings(ctx context.Context,
resourceGroupName := "default"
gc, err := c.tryGetResourceGroup(ctx, resourceGroupName)
if err != nil {
failedRequestCounter.WithLabelValues(resourceGroupName).Inc()
return false
}
bg = gc.getMeta().BackgroundSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,7 @@ func (suite *resourceManagerClientTestSuite) TestCheckBackgroundJobs() {
re.False(c.IsBackgroundRequest(suite.ctx, resourceGroupName, "internal_lightning"))
re.False(c.IsBackgroundRequest(suite.ctx, resourceGroupName, "internal_ddl"))
re.False(c.IsBackgroundRequest(suite.ctx, resourceGroupName, ""))
re.False(c.IsBackgroundRequest(suite.ctx, "none", "none"))

resourceGroupName = enableBackgroundGroup(true)
re.True(c.IsBackgroundRequest(suite.ctx, resourceGroupName, "internal_br"))
Expand Down

0 comments on commit a410d05

Please sign in to comment.