Skip to content

Commit

Permalink
feat(sync): more logs during the sync (#14197)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki authored Jan 20, 2025
1 parent 4448eef commit d979887
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ local ipairs = ipairs
local ngx_null = ngx.null
local ngx_log = ngx.log
local ngx_ERR = ngx.ERR
local ngx_INFO = ngx.INFO
local ngx_DEBUG = ngx.DEBUG


Expand Down Expand Up @@ -226,6 +227,8 @@ local function do_sync()

local wipe = ns_delta.wipe
if wipe then
ngx_log(ngx_INFO, "[kong.sync.v2] full sync begins")

t:db_drop(false)
end

Expand Down Expand Up @@ -336,6 +339,8 @@ local function do_sync()
end

if wipe then
ngx_log(ngx_INFO, "[kong.sync.v2] full sync ends")

kong.core_cache:purge()
kong.cache:purge()

Expand Down

1 comment on commit d979887

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong-dev:d979887bd4029e663a03c2be1c433359748f8896
Artifacts available https://github.com/Kong/kong/actions/runs/12865113342

Please sign in to comment.