You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/11 03:41:54 UTC

[GitHub] [apisix] spacewander commented on a change in pull request #2687: fix(etcd): handle etcd compaction

spacewander commented on a change in pull request #2687:
URL: https://github.com/apache/apisix/pull/2687#discussion_r521091129



##########
File path: apisix/core/etcd.lua
##########
@@ -118,6 +118,14 @@ function _M.watch_format(v3res)
     v2res.body = {
         node = {}
     }
+
+    local compact_revision = v3res.result.compact_revision
+    if compact_revision and tonumber(compact_revision) > 0 then
+        -- When the revisions are compacted, there might be compacted changes

Review comment:
       @membphis 
   Solved.




----------------------------------------------------------------
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.

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