On 25-11-2019 15:25, Roberto Vieweg jjw.roberto.fireb...@gmail.com [firebird-support] wrote: > The problem was the "time" between perform the SHUTDOWN and the VALIDATION. > > I just add a 1 second "sleep" between the shutdown and validate, and it > works! > > FBMaintenanceManager mgr = ...... ; > mgr.shutdownDatabase(FBMaintenanceManager.SHUTDOWN_FORCE, 0); > Thread.sleep(1000); // holy sleep > mgr.validateDatabase(FBMaintenanceManager.VALIDATE_READ_ONLY);
Good to hear you managed to solve your problem. I have created a ticket (http://tracker.firebirdsql.org/browse/JDBC-600) to see if this is something that can be fixed or improved in Jaybird. Mark -- Mark Rotteveel