Skip to content
Merged
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 @@ -328,11 +328,12 @@ public static Connection getMetaRefreshConnection(String url, ObUserAuth sysUA)
try {
return DriverManager.getConnection(url, sysUA.getUserName(), sysUA.getPassword());
} catch (Exception e) {
RUNTIME.error(LCD.convert("01-00005"), e.getMessage(), e);
RUNTIME.error(LCD.convert("01-00005"), url, e.getMessage(), e);
// Since the JDBC connection fails here, it is likely that the server has crashed or scaling down.
// Therefore, we need to set the Inactive flag of the ObTableEntryRefreshException to true.
// This allows the upper-layer retry mechanism to catch this exception and immediately refresh the metadata.
throw new ObTableEntryRefreshException("fail to connect meta server", e, true /* connect inactive */);
throw new ObTableEntryRefreshException(format("fail to connect meta server, url=%s",
url), e, true /* connect inactive */);
}
}

Expand Down
Loading