[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 static final String HBASE = "HBASE";
|
||||||
|
|
||||||
public HoodieDependentSystemUnavailableException(String system, String connectURL) {
|
public HoodieDependentSystemUnavailableException(String system, String connectURL, Throwable t) {
|
||||||
super(getLogMessage(system, connectURL));
|
super(getLogMessage(system, connectURL), t);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getLogMessage(String system, String connectURL) {
|
private static String getLogMessage(String system, String connectURL) {
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ public class SparkHoodieHBaseIndex<T extends HoodieRecordPayload> extends SparkH
|
|||||||
return ConnectionFactory.createConnection(hbaseConfig);
|
return ConnectionFactory.createConnection(hbaseConfig);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new HoodieDependentSystemUnavailableException(HoodieDependentSystemUnavailableException.HBASE,
|
throw new HoodieDependentSystemUnavailableException(HoodieDependentSystemUnavailableException.HBASE,
|
||||||
quorum + ":" + port);
|
quorum + ":" + port, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user