You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by "邪龙(dragon-zhang)" <19...@qq.com.INVALID> on 2022/04/16 10:03:17 UTC
回复: `shenyu-integrated-test-motan` always runs failed
thanks very much !
------------------ 原始邮件 ------------------
发件人: "dev" <jooks@apache.org>;
发送时间: 2022年4月16日(星期六) 下午4:26
收件人: "dev"<dev@shenyu.apache.org>;
主题: Re: `shenyu-integrated-test-motan` always runs failed
Hi folk,
Please update the config in `MotanPluginTest#setup`. [1]
For example :
```
"{\"register\":\"shenyu-zk:2181\",\"corethreads\":0,\"threads\":2147483647,\"queues\":0,\"threadpool\":\"cached\"}"
```
BTW, you can also add integration tests for the shared pool.
[1] https://github.com/apache/incubator-shenyu/blob/92f00e03e3fc38c987c4f539d1231da65806b396/shenyu-integrated-test/shenyu-integrated-test-motan/src/test/java/org/apache/shenyu/integrated/test/motan/MotanPluginTest.java#L39
>
> Hello community:
>
>
> I encountered a problem after submitting PR[1] which supporting shared thread pool for motan plugin.
>
>
> The problem is `shenyu-integrated-test-motan` always runs failed, and&nbsp;PR [1] only adds logic related to thread pool creation.
>
>
> If you are free, please see the PR[1] and help me to solve the problem.
>
>
> By the way, I have tested the code in the following order:
> 1. run `ShenyuAdminBootstrap` and enable `MotanPlugin`;
> 2. run `TestMotanApplication`;
> 3. run `ShenyuBootstrapApplication`;
> 4. send post request:
> GET http://localhost:9195/motan/hello
> Accept: application/json
> Content-Type: application/json
>
>
> {
> &nbsp; "name": "order"
> }
>
>
>
>
> thanks.
> dragon-zhang
>
>
> [1] https://github.com/apache/incubator-shenyu/pull/3253