1
0

[HUDI-1784] Added print detailed stack log when hbase connection error (#2799)

This commit is contained in:
hj2016
2021-04-12 13:46:06 +08:00
committed by GitHub
parent f3777f44fe
commit 1da16dfd2e
2 changed files with 3 additions and 3 deletions

View File

@@ -27,8 +27,8 @@ public class HoodieDependentSystemUnavailableException extends HoodieException {
public static final String HBASE = "HBASE";
public HoodieDependentSystemUnavailableException(String system, String connectURL) {
super(getLogMessage(system, connectURL));
public HoodieDependentSystemUnavailableException(String system, String connectURL, Throwable t) {
super(getLogMessage(system, connectURL), t);
}
private static String getLogMessage(String system, String connectURL) {

View File

@@ -151,7 +151,7 @@ public class SparkHoodieHBaseIndex<T extends HoodieRecordPayload> extends SparkH
return ConnectionFactory.createConnection(hbaseConfig);
} catch (IOException e) {
throw new HoodieDependentSystemUnavailableException(HoodieDependentSystemUnavailableException.HBASE,
quorum + ":" + port);
quorum + ":" + port, e);
}
}