GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing docs.voltactivedata.com — @Quiesce Using VoltDB@Quiesce@Quiesce — Waits for all queued export and DR data to be processed or saved to disk Synopsis@Quiesce DescriptionThe @Quiesce system procedure waits for any pending export or database replication (DR) data to be cleared before returning to the calling application. @Quiesce waits for export data to either be written to the export connector or to the export overflow on disk. Similarly, it waits for pending DR data to be written to DR overflow then does an fsync to ensure all disk I/O is completed. Note that a graceful shutdown (using the voltadmin shutdown command without the --force argument) performs a quiesce as part of the shutdown process. If export and DR are not enabled, the procedure returns immediately. Return ValuesReturns one VoltTable with one row.
ExamplesThe following example calls @Quiesce using sqlcmd: $ sqlcmd 1> exec @Quiesce; The following program example uses drain and @Quiesce to complete any asynchronous transactions and clear the export and DR queues before shutting down the database. // Complete all outstanding activities
try {
client.drain();
client.callProcedureSync("@Quiesce");
}
catch (Exception e) {
e.printStackTrace();
}
// Shutdown the database.
try {
client.callProcedureSync("@Shutdown");
}
// We expect an exception when the connection drops.
// Report any other exception.
catch (org.voltdb.client.ProcCallException e) { }
catch (Exception e) { e.printStackTrace(); }
| ||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |