![]() | ![]() | contents |
@Quiesce — Waits for all queued export data to be written to the connector.
ClientResponse client.callProcedure("@Quiesce")
The @Quiesce system procedure waits for any queued export data to be written to the export connector before returning to the calling application. @Quiesce also does an fsync to ensure any pending export overflow is written to disk. This system procedure should be called after stopping client applications and before calling @Shutdown to ensure that all export activity is concluded before shutting down the database.
If export is not enabled, the procedure returns immediately.
Returns one VoltTable with one row.
| Name | Datatype | Description |
|---|---|---|
| STATUS | BIGINT | Always returns the value zero (0) indicating success. |
The following example uses drain and @Quiesce to complete any asynchronous transactions and clear the export queues before shutting down the database.
// Complete all outstanding activities
try {
client.drain();
client.callProcedure("@Quiesce");
}
catch (Exception e) {
e.printStackTrace();
}
// Shutdown the database.
try {
client.callProcedure("@Shutdown");
}
// We expect an exception when the connection drops.
// Report any other exception.
catch (org.voltdb.client.ProcCallException e) { }
catch (Exception e) { e.printStackTrace(); }
The Tao of VoltDB
The 5 Principles of VoltDB
VoltDB Technosphere
Products and Solutions
Technical Support
Key Features
Download VoltDB
No Limits
VoltDB Application Gallery
Infinite Possibilities
VoltBuilder Program
