-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
lts-admin 日志/节点上下线日志搜索弹出错误对话框问题 #434
Comments
貌似作者都不维护了 🤣 |
我在生产环境,遇到了lts-jobtracker频繁上线、下线的问题[2020年07月16日] 无解 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lts-admin登入后台后,点击日志/节点上下线日志菜单,默认无条件搜索正常,但是当节点组输入某个字符串时,点击搜索,则会弹出一个错误展示层,经过查看日志记录,发现是lts-admin的一个sql bug。
错误代码坐标:com.github.ltsopensource.admin.access.mysql.MysqlBackendNodeOnOfflineLogAccess#buildWhereSql 99行。
报错信息:
com.github.ltsopensource.store.jdbc.exception.JdbcException: Select SQL Error:
SELECT
COUNT(1)
FROM
`lts_admin_node_onoffline_log`
WHERE
错误原因:
查询语句有个字段名group,但这个是个sql关键字,所以翻译后的sql无法被正确解析,故而报错。
解决方案:
第99行,
将
.andOnNotEmpty("group = ?", request.getGroup())
改为 .andOnNotEmpty("`group` = ?", request.getGroup())即可。
The text was updated successfully, but these errors were encountered: