embedded-postgres icon indicating copy to clipboard operation
embedded-postgres copied to clipboard

File lock not released when DB startup fails

Open todkuro opened this issue 1 year ago • 1 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.

todkuro avatar Apr 16 '24 00:04 todkuro

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.

tomix26 avatar Apr 17 '24 16:04 tomix26

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

tomix26 avatar Sep 27 '24 12:09 tomix26