MCPcopy Create free account
hub / github.com/questdb/questdb / awaitStartup

Method awaitStartup

core/src/main/java/io/questdb/ServerMain.java:166–169  ·  view source on GitHub ↗

Waits for startup background tasks to complete, including metadata cache and recent write tracker hydration. This should be called after #start() if immediate DDL operations (like DROP TABLE) are planned, to avoid conflicts with background hydration threads that may hold table metadata locks

()

Source from the content-addressed store, hash-verified

164 * with background hydration threads that may hold table metadata locks.
165 */
166 public void awaitStartup() {
167 joinThread(hydrateMetadataThread, false);
168 joinThread(compileViewsThread, false);
169 }
170
171 public void awaitTable(String tableName) {
172 getEngine().awaitTable(tableName, 30, TimeUnit.SECONDS);

Callers 2

startQuestDBMethod · 0.80

Calls 1

joinThreadMethod · 0.95

Tested by 2

startQuestDBMethod · 0.64