Skip to content

Commit

Permalink
Merge branch 'master' into keyspace-group-API
Browse files Browse the repository at this point in the history
  • Loading branch information
rleungx authored Mar 29, 2023
2 parents 67afab6 + 34949b8 commit a1f7126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/resource_group/controller/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (lim *Limiter) maybeNotify() {
}

func (lim *Limiter) isLowTokensLocked() bool {
if lim.isLowProcess || (lim.notifyThreshold > 0 && lim.tokens < lim.notifyThreshold) {
if lim.burst >= 0 && (lim.isLowProcess || (lim.notifyThreshold > 0 && lim.tokens < lim.notifyThreshold)) {
return true
}
return false
Expand Down
1 change: 1 addition & 0 deletions pkg/schedule/placement/label_constraint.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ var legacyExclusiveLabels = []string{core.EngineKey, "exclusive"}
// If a store has exclusiveLabels, it can only be selected when the label is
// explicitly specified in constraints.
func isExclusiveLabel(key string) bool {
// *Do not* change this behavior, we rely on it to physically isolate stores.
return strings.HasPrefix(key, "$") || slice.AnyOf(legacyExclusiveLabels, func(i int) bool {
return key == legacyExclusiveLabels[i]
})
Expand Down

0 comments on commit a1f7126

Please sign in to comment.