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
()
| 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); |