Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Jan 16, 2024
1 parent 205a4e0 commit 5e05ad2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.testcontainers.lifecycle.Startables;
import org.testcontainers.utility.DockerLoggerFactory;

import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
Expand Down Expand Up @@ -112,7 +113,7 @@ public static GenericContainer createDorisContainer() {
return container;
}

protected static void initializeJdbcConnection() throws SQLException, MalformedURLException {
protected static void initializeJdbcConnection() throws Exception {
URLClassLoader urlClassLoader =
new URLClassLoader(
new URL[] {new URL(DRIVER_JAR)}, DorisTestBase.class.getClassLoader());
Expand Down Expand Up @@ -142,7 +143,8 @@ private static boolean isBeReady(ResultSet rs, Duration duration) throws SQLExce
return false;
}

protected static void printClusterStatus() throws SQLException {
protected static void printClusterStatus() throws Exception {
LOG.info("Current machine IP: {}", InetAddress.getLocalHost());
try (Statement statement = connection.createStatement()) {
ResultSet showFrontends = statement.executeQuery("show frontends");
LOG.info("Frontends status: {}", convertList(showFrontends));
Expand Down

0 comments on commit 5e05ad2

Please sign in to comment.