Skip to content

Commit

Permalink
Merge pull request flyteorg#80 from lyft/fairness-hard-cap
Browse files Browse the repository at this point in the history
Fixing a malformatted log in resource manager
  • Loading branch information
bnsblue authored Mar 6, 2020
2 parents 1824156 + e034420 commit 64a90cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (r *RedisResourceManager) AllocateResource(ctx context.Context, namespace p
// if the cap <= 0, it means no cap is enforced; otherwise, the cap will be enforced
// Note that, due to race condition there might be cases where the allocated count is > cap. This is OK.
if !ok {
logger.Infof(ctx, "Too many allocations for resource [%v], scope [%v] ([%d of %d] allocated), rejecting token [%s:%s]",
logger.Infof(ctx, "Too many allocations for resource [%v], scope [%v] (max allocation: [%d]), rejecting token [%s]",
namespace, composedResourceConstraintList[violatedConstraintIdx].TargetedPrefixString,
composedResourceConstraintList[violatedConstraintIdx].Value, allocationToken)
namespacedResource.rejectedTokens.Store(allocationToken, struct{}{})
Expand Down

0 comments on commit 64a90cb

Please sign in to comment.