-
Notifications
You must be signed in to change notification settings - Fork 1.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
apiserver does not close rows in InitializeDBStatusTable leading to "busy buffer" errors #3098
Comments
Reusing tx before closing rows (might) result in the following error: [mysql] 2020/02/17 11:55:38 packets.go:427: busy buffer This closes kubeflow#3098
Reusing tx before closing rows (might) result in the following error: [mysql] 2020/02/17 11:55:38 packets.go:427: busy buffer This closes kubeflow#3098
@discordianfish Thank you very much for the fix. Just one thing: do you mind adding a comment to the rows.close() line, stating that the variable "rows" shouldn't be used after that point (i.e., after it is closed). I am thinking of later updates to these two files accidentally referring to "rows" after it is closed and causes errors. Thanks! |
@jingzhang36 Okay, I thought that goes without saying but I've added a comment. |
* apiserver: Close rows before reusing tx Reusing tx before closing rows (might) result in the following error: [mysql] 2020/02/17 11:55:38 packets.go:427: busy buffer This closes #3098 * Add comment as requested by reviewer
* apiserver: Close rows before reusing tx Reusing tx before closing rows (might) result in the following error: [mysql] 2020/02/17 11:55:38 packets.go:427: busy buffer This closes kubeflow#3098 * Add comment as requested by reviewer
What steps did you take:
Not exactly sure how the apiserver got into this state, probably something went wrong on initial db creation.
What happened:
ml-pipeline deployment is crashlooping:
What did you expect to happen:
Database creation should work.
Environment:
KFP version: 1.0-rc
Anything else you would like to add:
I suspect the root issue here is that the apiserver re-uses the transaction before closing the rows, which according to go-sql-driver/mysql#977 (comment) would cause such 'busy buffer' error.
Similar/same? issues: #1745 and #2699
/kind bug
/area backend
I'll submit a PR to fix in a bit.
The text was updated successfully, but these errors were encountered: