From 073fcff2237ee52a8b8bdaa400e128fbaeae9122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20H=C3=BCbner?= Date: Thu, 26 Oct 2023 12:40:54 +0200 Subject: [PATCH] fix(core): yield before updating globals.CURRENT_TRANSACTION_ID --- kong/runloop/handler.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kong/runloop/handler.lua b/kong/runloop/handler.lua index b22fc739086c..e2759287ed4c 100644 --- a/kong/runloop/handler.lua +++ b/kong/runloop/handler.lua @@ -1005,6 +1005,9 @@ return { end if rebuild_transaction_id then + -- Yield to process any pending invalidations + utils.yield() + log(NOTICE, "configuration processing completed for transaction ID " .. rebuild_transaction_id) global.CURRENT_TRANSACTION_ID = rebuild_transaction_id end