spacewander opened a new issue #43: URL: https://github.com/apache/apisix-go-plugin-runner/issues/43
@envestcc Could you log down the token & conf with the given patch? ``` diff --git internal/plugin/conf.go internal/plugin/conf.go index 5758f0a..9f67c59 100644 --- internal/plugin/conf.go +++ internal/plugin/conf.go @@ -129,10 +129,12 @@ func (cc *ConfCache) SetInTest(token uint32, entries RuleConf) error { } func (cc *ConfCache) Get(token uint32) (RuleConf, error) { + log.Warnf("get conf with token %d", token) res, err := cc.tokenCache.Get(strconv.FormatInt(int64(token), 10)) if err != nil { return nil, err } + log.Warnf("conf result with token %v", res.(RuleConf)) return res.(RuleConf), err } ``` For apisix: ``` diff --git apisix/plugins/ext-plugin/init.lua apisix/plugins/ext-plugin/init.lua index 6cb593c8..a43228c1 100644 --- apisix/plugins/ext-plugin/init.lua +++ apisix/plugins/ext-plugin/init.lua @@ -358,6 +358,8 @@ local rpc_handlers = { return nil, err end + core.log.warn("get conf token: ", token, " conf: ", core.json.delay_encode(conf.conf)) + builder:Clear() local var = ctx.var ``` And how to reproduce this issue? -- 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