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
Deadlock in PostgreSQL 12 #2634
Labels
Milestone
Comments
romash1408
added a commit
to romash1408/flyway
that referenced
this issue
Jan 20, 2020
This is somewhat unexpected as the documentation claims Postgres always emits |
Potential fix #2635 |
romash1408
added a commit
to romash1408/flyway
that referenced
this issue
Jan 20, 2020
Possibly related to #2506. |
juliahayward
added a commit
that referenced
this issue
Jan 20, 2020
Fix #2634 deadlock in Postgresql 12
dohrayme
pushed a commit
to dohrayme/flyway
that referenced
this issue
Feb 3, 2020
dohrayme
pushed a commit
to dohrayme/flyway
that referenced
this issue
Feb 3, 2020
dohrayme
pushed a commit
to dohrayme/flyway
that referenced
this issue
Feb 3, 2020
Fix flyway#2634 deadlock in Postgresql 12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flyway version: 6.1.4 (API)
DB version: PostgreSQL 12.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 9.2.0, 64-bit
This code is calling flyway on start up:
Then flyway tries to lock table, but it fails on this line
flyway/flyway-core/src/main/java/org/flywaydb/core/internal/database/postgresql/PostgreSQLAdvisoryLockTemplate.java
Line 112 in 72cfe7d
because
rs.getString("pg_try_advisory_lock")
returnstrue
, so we've got infinite loopThe text was updated successfully, but these errors were encountered: