Rain-ziyu commented on issue #24891:
URL: 
https://github.com/apache/shardingsphere/issues/24891#issuecomment-1495297235

   > 你好@Rain-ziyu 抱歉,我查看了5.2.1版本的源代码,没有发现可能导致这些问题的逻辑。
   > 
   > 此外,您提供的简单复制代码已无法访问。问题解决了吗?
   
   I will modify it to public.
   The problem has been solved. As GPT knows, I modified the source code to the 
custom thread pool mode. There is no problem.
   
   like this:
   ```
   CompletableFuture.supplyAsync(()
                   -> roleMapper.listResourceRoles());
   ```
   Modify to
   ```
   ExecutorService executor = Executors.newFixedThreadPool(10); 
   
   CompletableFuture<List<ResourceRole>> asyncArticleCount = 
CompletableFuture.supplyAsync(() -> roleMapper.listResourceRoles(), executor);
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to