initlisk commented on issue #11830: URL: https://github.com/apache/apisix/issues/11830#issuecomment-2544694093
I add some log to /usr/local/apisix//deps/share/lua/5.1/resty/dns/client.lua:asyncQuery `local function asyncQuery(qname, r_opts, try_list) local key = qname..":"..r_opts.qtype local item = queue[key] if item then --[[ log(DEBUG, PREFIX, "Query async (exists): ", key, " ", fquery(item)) --]] try_status(try_list, "in progress (async)") return item -- already in progress, return existing query end -- log local nil_qtype = false if r_opts.qtype == nil then nil_qtype = true end item = { key = key, semaphore = semaphore(), qname = qname, r_opts = deepcopy(r_opts), try_list = try_list, } -- log if item.r_opts.qtype == nil or nil_qtype then log(ERR, PREFIX, "item nil qtype in async, ", nil_qtype, " item ropts, ",json(item.r_opts), " key=", key, "try list=", tostring(try_list)) end queue[key] = item local ok, err = timer_at(0, executeQuery, item) if not ok then queue[key] = nil log(ERR, PREFIX, "Failed to create a timer: ", err) return nil, "asyncQuery failed to create timer: "..err end --[[ log(DEBUG, PREFIX, "Query async (scheduled): ", key, " ", fquery(item)) --]] try_status(try_list, "scheduled") return item end ` and the error logs is `item nil qtype in async, false item ropts, {} key=***.rds.aliyuncs.com:1try list=["(short)***.rds.aliyuncs.com:(na) - cache-hit/stale","***.rds.aliyuncs.com.test-back.svc.cluster.local:1 - cache-hit/dns server error: 3 name error","***.rds.aliyuncs.com.svc.cluster.local:1 - cache-hit/dns server error: 3 name error","***.rds.aliyuncs.com.cluster.local:1 - cache-hit/dns server error: 3 name error","***.rds.aliyuncs.com:1 - cache-hit/stale"]` -- 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