Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ public void stopStreams() throws TimeoutException {
}

@AfterEach
public void removeTables() {
public void removeTables() throws TimeoutException {
// Stop active streams before dropping the table. In async mode the planner's background
// thread keeps refreshing the table from the catalog; dropping the table while that thread
// is alive lets those refreshes contend with DROP TABLE and stall teardown for seconds.
stopStreams();
sql("DROP TABLE IF EXISTS %s", tableName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ public void stopStreams() throws TimeoutException {
}

@AfterEach
public void removeTables() {
public void removeTables() throws TimeoutException {
// Stop active streams before dropping the table. In async mode the planner's background
// thread keeps refreshing the table from the catalog; dropping the table while that thread
// is alive lets those refreshes contend with DROP TABLE and stall teardown for seconds.
stopStreams();
sql("DROP TABLE IF EXISTS %s", tableName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ public void stopStreams() throws TimeoutException {
}

@AfterEach
public void removeTables() {
public void removeTables() throws TimeoutException {
// Stop active streams before dropping the table. In async mode the planner's background
// thread keeps refreshing the table from the catalog; dropping the table while that thread
// is alive lets those refreshes contend with DROP TABLE and stall teardown for seconds.
stopStreams();
sql("DROP TABLE IF EXISTS %s", tableName);
}

Expand Down