membphis commented on code in PR #12015:
URL: https://github.com/apache/apisix/pull/12015#discussion_r1977276165


##########
apisix/core/config_etcd.lua:
##########
@@ -262,9 +262,13 @@ local function do_run_watch(premature)
             cancel_watch(http_cli)
             break
         end
-        if rev > watch_ctx.rev then
-            watch_ctx.rev = rev + 1
+        if rev < watch_ctx.rev then
+            log.warn("received smaller revision, rev=", rev, ", 
watch_ctx.rev=", watch_ctx.rev,". etcd may be restarted. resyncing....")

Review Comment:
   we should use a error log level



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to