Skip to content

Commit

Permalink
[1.18] log leak backport (#10545)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuval Kohavi <[email protected]>
  • Loading branch information
nfuden and yuval-k authored Jan 2, 2025
1 parent 2f59d4d commit 99e1ba7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/v1.18.3/memleak.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
- type: FIX
issueLink: https://github.com/solo-io/solo-projects/issues/7573
description: >-
Fix a memory leaking a log name.
6 changes: 3 additions & 3 deletions projects/gloo/pkg/syncer/setup/setup_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1375,15 +1375,15 @@ func runQueue(ctx context.Context, proxyReconcileQueue ggv2utils.AsyncQueue[gloo
// the proxy type key/value must stay in sync with the one defined in projects/gateway2/translator/gateway_translator.go
utils.ProxyTypeKey: utils.GatewayApiProxyValue,
}
ctx = contextutils.WithLogger(ctx, "proxyCache")
logger := contextutils.LoggerFrom(ctx)

proxyReconciler := gloov1.NewProxyReconciler(proxyClient, statusutils.NewNoOpStatusClient())
for {
proxyList, err := proxyReconcileQueue.Dequeue(ctx)
if err != nil {
return
}
ctx = contextutils.WithLogger(ctx, "proxyCache")
logger := contextutils.LoggerFrom(ctx)

// Proxy CR is located in the writeNamespace, which may be different from the originating Gateway CR
err = proxyReconciler.Reconcile(
writeNamespace,
Expand Down

0 comments on commit 99e1ba7

Please sign in to comment.