From 275dd939e3e75121b61ba24deaa374961722d660 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Tue, 5 Nov 2024 10:18:58 +0800 Subject: [PATCH] check self.concentrator --- kong/clustering/rpc/manager.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kong/clustering/rpc/manager.lua b/kong/clustering/rpc/manager.lua index 99c13ab1f6e5..6d8dc88bfbf4 100644 --- a/kong/clustering/rpc/manager.lua +++ b/kong/clustering/rpc/manager.lua @@ -117,6 +117,9 @@ function _M:_find_node_and_check_capability(node_id, cap) return "local" end + -- now we are on cp side + assert(self.concentrator) + -- does concentrator knows more about this client? local res, err = kong.db.clustering_data_planes:select({ id = node_id }) if err then