Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(upstreams) mark the update timer as scheduled #8858

Merged
merged 1 commit into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kong/runloop/balancer/upstreams.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ function upstreams_M.update_balancer_state()
if err then
log(CRIT, "unable to start update proxy state timer: ", err)
else
update_balancer_state_running = true
log(DEBUG, "update proxy state timer scheduled")
end
end
Expand Down
3 changes: 2 additions & 1 deletion spec/02-integration/04-admin_api/15-off_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1117,13 +1117,14 @@ end)
describe("Admin API #off worker_consistency=eventual", function()

local client
local WORKER_STATE_UPDATE_FREQ = 0.1

lazy_setup(function()
assert(helpers.start_kong({
database = "off",
lmdb_map_size = LMDB_MAP_SIZE,
worker_consistency = "eventual",
worker_state_update_frequency = 0.1,
worker_state_update_frequency = WORKER_STATE_UPDATE_FREQ,
}))
end)

Expand Down