Skip to content

Commit

Permalink
missed to delete the temp dir (apache#12637)
Browse files Browse the repository at this point in the history
  • Loading branch information
klsince authored Mar 13, 2024
1 parent e1aee5f commit 394922e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ protected void stopServer() {
for (BaseServerStarter serverStarter : _serverStarters) {
serverStarter.stop();
}
FileUtils.deleteQuietly(new File(_baseInstanceDataDir + File.separator + "PinotServer"));
FileUtils.deleteQuietly(new File(_baseInstanceDataDir));
_serverStarters = null;
_serverGrpcPort = 0;
_serverAdminApiPort = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.io.FileUtils;
import org.apache.helix.model.IdealState;
import org.apache.pinot.client.ResultSetGroup;
import org.apache.pinot.common.exception.HttpErrorStatusException;
Expand Down Expand Up @@ -299,12 +300,14 @@ protected void createSchemaAndTable()
}

@AfterClass
public void tearDown() {
public void tearDown()
throws IOException {
stopServer();
stopBroker();
stopController();
stopKafka();
stopZk();
FileUtils.deleteDirectory(_tempDir);
}

@Override
Expand Down

0 comments on commit 394922e

Please sign in to comment.