You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "creabob (via GitHub)" <gi...@apache.org> on 2024/07/04 08:49:00 UTC

[I] [BUG] In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h1><pre> creabob opened a new issue, #5588: URL: https://github.com/apache/shenyu/issues/5588 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior this is my rule setting in modifyResponse plugin <img width="841" alt="image" src="https://github.com/apache/shenyu/assets/25314080/eef719a3-9a55-400e-8986-e37b25e2e699"> this is matching case <img width="483" alt="image" src="https://github.com/apache/shenyu/assets/25314080/df23f8ff-605b-4daf-9a54-842e44b7280c"> this is un-matching case without add body info <img width="469" alt="image" src="https://github.com/apache/shenyu/assets/25314080/122ead6e-39e6-4e14-a094-5d93828e9781"> but after un-matching case, the matching case become un-match <img width="535" alt="image" src="https://github.com/apache/shenyu/assets/25314080/0122b18b-57c1-486a-b4c5-8473a3341d82"> this operates in orders ### Expected Behavior Whenever the request happens, the matching scene should be matched ### Steps To Reproduce 1. in shenyu-master branch 2. set matching rules 3. happen one un-matching case 4. matching case will dismatch ### Environment ```markdown ShenYu version(s): master ``` ### Debug logs this is the logs under matching case but un-matching and without modifyResponse rule success match info. <img width="703" alt="image" src="https://github.com/apache/shenyu/assets/25314080/995c5b05-04c9-4299-816d-0ba65701860a"> ### Anything else? i have debug in this case, find some questions in this line, why caches an empty ruleData when not match rules. <img width="1013" alt="image" src="https://github.com/apache/shenyu/assets/25314080/206854c5-480a-4dd1-9dc5-aec0be65ce23"> `cacheRuleData(path, emptyRuleData);` when i delete this line ,this bug will be fixed. but i am not sure this operate is correct. Can u introduce the original intention of this line which cache empty ruleData? -- 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@shenyu.apache.org.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "creabob (via GitHub)" <gi...@apache.org>.</b><hr/><pre> creabob commented on issue #5588: URL: https://github.com/apache/shenyu/issues/5588#issuecomment-2208451209 besides, This problem not only exists in this plugin -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "moremind (via GitHub)" <gi...@apache.org>.</b><hr/><pre> moremind commented on issue #5588: URL: https://github.com/apache/shenyu/issues/5588#issuecomment-2211780671 > > please close rule cache in shenyu-bootstrap.yml > > so, it is recommended to turn on this rule cache function? if your rule just exist url condition, you can turn on -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "creabob (via GitHub)" <gi...@apache.org>.</b><hr/><pre> creabob commented on issue #5588: URL: https://github.com/apache/shenyu/issues/5588#issuecomment-2210444964 > please close rule cache in shenyu-bootstrap.yml so, it is recommended to turn on this rule cache function? -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "moremind (via GitHub)" <gi...@apache.org>.</b><hr/><pre> moremind commented on issue #5588: URL: https://github.com/apache/shenyu/issues/5588#issuecomment-2238204858 > If I want to use the cache not only under the rules of the url condition, is it supported now? -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "creabob (via GitHub)" <gi...@apache.org>.</b><hr/><pre> creabob commented on issue #5588: URL: https://github.com/apache/shenyu/issues/5588#issuecomment-2232821248 If I want to use the cache not only under the rules of the url condition, is it supported now? -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "moremind (via GitHub)" <gi...@apache.org>.</b><hr/><pre> moremind closed issue #5588: [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail URL: https://github.com/apache/shenyu/issues/5588 -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> <h2>Re: [I] [BUG] <title> In rulesList, The un-matching request will cause normal requests to fail [shenyu]</h2> <b>Posted by "moremind (via GitHub)" <gi...@apache.org>.</b><hr/><pre> moremind commented on issue #5588: URL: https://github.com/apache/shenyu/issues/5588#issuecomment-2210391333 please close rule cache in shenyu-bootstrap.yml -- 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@shenyu.apache.org For queries about this service, please contact Infrastructure at: users@infra.apache.org </pre><hr/> </body> </html>