You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "forget99 (via GitHub)" <gi...@apache.org> on 2023/06/03 04:30:47 UTC

[GitHub] [apisix-java-plugin-runner] forget99 opened a new issue, #248: bug: 在多线程环境下如何从filter传值到postFilter? 将filter中获取的数据和postFilter获取的数据串连起来

forget99 opened a new issue, #248:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/248

   ### 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": "AuthFilter",
             "value": "authFilter"
           }
         ],
         "disable": false
       }
     },
   
   can you help me?
   


-- 
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-unsubscribe@apisix.apache.org.apache.org

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


Re: [I] bug: 在多线程环境下如何从filter传值到postFilter? 将filter中获取的数据和postFilter获取的数据串连起来 [apisix-java-plugin-runner]

Posted by "gaoxingliang (via GitHub)" <gi...@apache.org>.
gaoxingliang commented on issue #248:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/248#issuecomment-1815936553

   I test the request id. it's not a tracking solution. and now I encountered the same problem .


-- 
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-unsubscribe@apisix.apache.org

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


[GitHub] [apisix-java-plugin-runner] gaoxingliang commented on issue #248: bug: 在多线程环境下如何从filter传值到postFilter? 将filter中获取的数据和postFilter获取的数据串连起来

Posted by "gaoxingliang (via GitHub)" <gi...@apache.org>.
gaoxingliang commented on issue #248:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/248#issuecomment-1730878152

   how about using the `request.getRequestId()` ?


-- 
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-unsubscribe@apisix.apache.org

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