zonkyio/embedded-postgres

File lock not released when DB startup fails

todkuro opened this issue · 2 comments

version: 2.0.6, 2.0.7

When trying to use embedded-postgres from an IDE such as IntelliJ via Gradle, if the DB fails to start, the file lock is not released and the IDE must be restarted.
EmbeddedPostgres handles the DB startup process in the constructor. If for some reason the DB fails to start and you get a "Gave up waiting for server..." error, there is no recovery method other than restarting the IDE.

Is the reported issue really related just to versions 2.0.6 and 2.0.7? Because I think no changes were made that could affect the locking mechanism in those specific versions. Could you also please provide a log from the moment just before the IDE freezes? That would help me find the problem more quickly.

Closing the issue. Feel free to reopen it if you have more information.