You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently utilizing your library to perform a specific task: fixing a .sql file and subsequently creating a dump of the fixed file. I am initiating my application via CommandLineRunner and starting the database with the .start() method, followed by running my code.
However, I am encountering an issue when attempting to wait for mysqldump to complete. Here is the code snippet I am using:
When I attempt to call .waitForExit(), the execution seems to halt indefinitely. It appears as though the program is freezing, and no further execution occurs.
My hypothesis is that the .waitForExit() method might be blocking the main thread where the database is running, potentially leading to a deadlock situation. This is based on the observation that the main thread seems to be unresponsive during the waitForExit() call.
Unfortunately, it seems that I have limited control over the ManagedProcess instance, which makes it challenging to troubleshoot or circumvent this issue.
I am seeking your assistance to understand this behavior better and, if possible, find a solution. Could you please provide guidance on how to safely start the database, create a dump, and wait for the dump process to finish without causing a deadlock or freezing the main thread?
The text was updated successfully, but these errors were encountered:
I am currently utilizing your library to perform a specific task: fixing a .sql file and subsequently creating a dump of the fixed file. I am initiating my application via CommandLineRunner and starting the database with the .start() method, followed by running my code.
However, I am encountering an issue when attempting to wait for mysqldump to complete. Here is the code snippet I am using:
When I attempt to call .waitForExit(), the execution seems to halt indefinitely. It appears as though the program is freezing, and no further execution occurs.
My hypothesis is that the .waitForExit() method might be blocking the main thread where the database is running, potentially leading to a deadlock situation. This is based on the observation that the main thread seems to be unresponsive during the waitForExit() call.
Unfortunately, it seems that I have limited control over the ManagedProcess instance, which makes it challenging to troubleshoot or circumvent this issue.
I am seeking your assistance to understand this behavior better and, if possible, find a solution. Could you please provide guidance on how to safely start the database, create a dump, and wait for the dump process to finish without causing a deadlock or freezing the main thread?
The text was updated successfully, but these errors were encountered: