[HUDI-1784] Added print detailed stack log when hbase connection error (#2799)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user