-
Notifications
You must be signed in to change notification settings - Fork 89
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
ERROR: duplicate key violates unique constraint "pg_class_relname_nsp_index" #243
Comments
Hello, @idoelad Could you paste the whole stack trace log?. It may help for debugging the error. |
Hi @hiroyuki-sato, sorry for the delayed response.
|
@idoelad It seems that multiple embulk processes tried to create the same table. |
Hi @hito4t , Yes, I have a few machines that writes to the same table that doesn't exists before the first Embulk run (I'm counting on Embulk to create the table, since the MySQL table structure may change). |
Thank you so much @hito4t ! |
When running Embulk on multiple machines that writes to a single RedShift cluster, I often get the following error (usually only on the first few runs):
Error: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "pg_class_relname_nsp_index" (possibly caused by concurrent transaction conflict)
I found these two issues that seems related but both seems to be fixed in versions older than the one I'm using:
#205 #116
Embulk and plugin versions:
The text was updated successfully, but these errors were encountered: