This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 07e37bb chore: remove the obsolote etcd v2 protocol error (#3258)
07e37bb is described below
commit 07e37bb63b7116aa603f6552cd390c9211f9ea1a
Author: 罗泽轩 <[email protected]>
AuthorDate: Wed Jan 13 01:59:53 2021 -0600
chore: remove the obsolote etcd v2 protocol error (#3258)
The 401 error is only for v2, so it is safe to remove it now.
---
apisix/core/config_etcd.lua | 7 -------
1 file changed, 7 deletions(-)
diff --git a/apisix/core/config_etcd.lua b/apisix/core/config_etcd.lua
index b3a5d13..303281c 100644
--- a/apisix/core/config_etcd.lua
+++ b/apisix/core/config_etcd.lua
@@ -320,13 +320,6 @@ local function sync_data(self)
local res = dir_res.body.node
local err_msg = dir_res.body.message
if err_msg then
- if err_msg == "The event in requested index is outdated and cleared"
- and dir_res.body.errorCode == 401 then
- self.need_reload = true
- log.warn("waitdir [", self.key, "] err: ", err_msg,
- ", need to fully reload")
- return false
- end
return false, err
end