From a2b6f95656fc7c787ff28ce125049a6f16c361d5 Mon Sep 17 00:00:00 2001 From: Ankit Chawla Date: Mon, 13 Jun 2022 15:09:29 +0530 Subject: [PATCH] Fix for issue in poolmgr fns caused by skipping address validation (#2441) --- pkg/executor/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/executor/api.go b/pkg/executor/api.go index f765378d..748f66b5 100644 --- a/pkg/executor/api.go +++ b/pkg/executor/api.go @@ -77,7 +77,7 @@ func (executor *Executor) getServiceForFunctionAPI(w http.ResponseWriter, r *htt if err == nil { // if a pod is already serving request then it already exists else validated logger.Debug("from cache", zap.Int("active", active)) - if active > 1 || et.IsValid(ctx, fsvc) { + if et.IsValid(ctx, fsvc) { // Cached, return svc address logger.Debug("served from cache", zap.String("name", fsvc.Name), zap.String("address", fsvc.Address)) executor.writeResponse(w, fsvc.Address, fn.ObjectMeta.Name)