Skip to content
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

MySqlAccountService.updateAccounts got id conflict and didn't retry #1716

Open
lightningrob opened this issue Dec 5, 2020 · 0 comments
Open
Assignees

Comments

@lightningrob
Copy link
Contributor

2020/12/04 22:06:09.476 ERROR [MySqlAccountService] [RequestWorker-4] [ambry-frontend] [] Failed updating accounts=[Account[1256,7]] in MySql DB
java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '1256-15' for key 'PRIMARY'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1092) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1040) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1347) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:1025) ~[mysql-connector-java-8.0.21.jar:8.0.21]
at com.github.ambry.account.mysql.ContainerDao.addContainer(ContainerDao.java:78) ~[ambry-account-0.3.394.jar:?]
at com.github.ambry.account.mysql.MySqlAccountStore.addContainer(MySqlAccountStore.java:92) ~[ambry-account-0.3.394.jar:?]
at com.github.ambry.account.MySqlAccountService.updateContainersWithMySqlStore(MySqlAccountService.java:424) ~[ambry-account-0.3.394.jar:?]
at com.github.ambry.account.MySqlAccountService.updateAccountsWithMySqlStore(MySqlAccountService.java:386) ~[ambry-account-0.3.394.jar:?]
at com.github.ambry.account.MySqlAccountService.updateAccounts(MySqlAccountService.java:275) ~[ambry-account-0.3.394.jar:?]
at com.github.ambry.account.CompositeAccountService.updateAccounts(CompositeAccountService.java:89) ~[ambry-account-0.3.394.jar:?]

@lightningrob lightningrob self-assigned this Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant