-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InterruptedException always occurs while requesting template pages #4468
Comments
这个异常应该和保存文章没有关系,你是无法保存文章还是? /triage needs-information |
很奇怪,保存文章是正常的。 |
可以关闭此issue,自从调整堆大小至2G,此类报错日志消失不见了 |
当前问题可能和内存关系不大。大概率发生在访问过程中客户端断开连接。 建议重新打开当前 Issue,等待解决。 /reopen |
@JohnNiang: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
ping @halo-dev/sig-halo 建议优先解决一下此问题,这个问题会严重影响查看日志时对问题的判断。 |
/assign |
当前问题似乎很难直接修改 Halo 的源码来解决。原因如下: 出现 InterruptedException 的主要原因是我们在页面渲染的过程中调用了 Mono#block 或者 Flux#block 方法,这两个方法会使当前线程处于等待状态,一旦客户端请求断开连接,当前线程将会被打断,并抛出 InterruptedException,但该异常被 Thymeleaf 捕获并打印错误日志。实际上,该异常完全可以忽略。 目前只修改 Halo 的源码无法直接解决,即使修改 Thymeleaf 源码(目前缺乏维护和响应)也需要修改不少地方。 由于当前异常暂时不会影响正常的业务逻辑,暂时不做处理。如果后续能够更换模板引擎,或许是解决问题的办法之一。 |
What is version of Halo has the issue?
2.8.0
What database are you using?
MySQL 8.x
What is your deployment method?
Docker Compose
Your site address.
www.2tuan.site
What happened?
提交文章时,日志出现模板解析错误,具体如下所示:
Relevant log output
Additional information
The text was updated successfully, but these errors were encountered: