8000 命名空间创建失败会导致服务不可用 · Issue #1009 · PowerJob/PowerJob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

命名空间创建失败会导致服务不可用 #1009

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

Closed
AMysteryMan opened this issue Oct 11, 2024 · 3 comments
Closed

命名空间创建失败会导致服务不可用 #1009

AMysteryMan opened this issue Oct 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@AMysteryMan
Copy link

创建命名空间时一旦填写了已经存在的code,错误提示:
ERROR: DatalntegrityViolationException: could not execute statement; SQL in/al; constraint [uidx01 namespacel; nested exception is
org.hibernate.exception.ConstraintViolationException: could not execute statement

之后服务的其他模块也无法使用,错误提示:
ERROR:JpaSystemException: could not extract ResultSet; nested exception is org.hibernate.exception.GenericJDBCException: could not extract ResultSet

@AMysteryMan AMysteryMan added the bug Something isn't working label Oct 11, 2024
@KFCFans
Copy link
Member
KFCFans commented Nov 2, 2024

测试无法复现,请提供详细的复现路径

@AMysteryMan
Copy link
Author

测试无法复现,请提供详细的复现路径

你创建应用的时候,在同一个命名空间下,appName输入一个已经存在的,然后创建,这个时候出错后,整个集群服务不可用。
比如获取命名空间或者应用列表就会报错:could not extract ResultSet; nested exception is org.hibernate.exception.GenericJDBCException: could

@KFCFans
Copy link
Member
KFCFans commented Nov 22, 2024

我估计和 db 有关,我自己验证是无法复现的,会被 mysql 的唯一索引卡住,数据插不进去。
不过保险起见代码层做个校验吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0