forget99
forget99
### Issue description How can i modify the request body with java plugin? ### Environment * your apisix-java-plugin-runner version:0.4.0
### Issue description 在多线程环境下,一个请求进入apisix网关,在路由上配置了ext-plugin-pre-req和ext-plugin-post-resp,在执行插件时,filter方法和postFilter执行顺序不是一一对应,导致数据错乱,如何将filter和postFilter通过一个唯一值串联起来呢 "plugins": { "ext-plugin-post-resp": { "allow_degradation": false, "conf": [ { "name": "AuthFilter", "value": "authFilter" } ], "disable": false }, "ext-plugin-pre-req": { "allow_degradation": false, "conf": [ { "name":...
### Issue description 在路由上配置了一个前置插件ext-plugin-pre-req和后置插件ext-plugin-post-resp,在前置插件中获取请求信息,在后置插件中获取响应信息,在多线程环境下,如何将请求数据串联起来。使用线程id和requestId都会出现错乱。 ### code @Override public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) { long requestId = request.getRequestId(); String uuid = UuidUtil.create2(); Thread thread = Thread.currentThread(); thread.setName(uuid); logger.info("【前置拦截过滤器线程名称】:"...
### Issue description 如果将filter方法和postFilter方法关联起来,我现在有一个路由配置了ext-plugin-pre-req插件和ext-plugin-post-resp插件,我需要在ext-plugin-pre-req记录接口请求的相关信息(请求路径、请求参数等),需要在ext-plugin-post-resp插件中记录接口的响应信息(响应结果),我测试了一下在没有并发的情况下,就简单的单次调用可以正常记录信息,但是在高并发多个接口同时调用时,ext-plugin-pre-req插件的filter方法和ext-plugin-post-resp插件的postFilter方法不是一 一 对应的,导致我不能正确的记录接口请求中的信息,希望老师帮我看下。please help me! ### Environment * your apisix-java-plugin-runner version ` @Override public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) { String uuid = UuidUtil.create2(); Thread...
hello,my apisix-java-plugin-runner is running success,java runner is listening on the socket file: /usr/local/apisix/conf/apisix-1.sock,but unable to connect,project filter logs is not print。 runing logs as follows: . ____ _ __ _...
### Description 在apisix路由中配置了一个上游服务,上游服务只支持域名访问,不能通过ip + port的方式访问,在路由中设置了域名重写,服务可以正常调用,但是在路由上加上ext-plugin-post-resp后置插件,调用服务404. ` "ext-plugin-post-resp": { "allow_degradation": true, "conf": [ { "name": "AuthFilter", "value": "authFilter" } ], "disable": false } "proxy-rewrite": { "host": "test.com", "regex_uri": [ "^/test-api(/|$)(.*)", "/$2"...