Skip to content

Commit 5ff0122

Browse files
author
xlinliu
committed
appconn refresh fault tolerance
1 parent 2768f9f commit 5ff0122

File tree

1 file changed

+7
-0
lines changed
  • dss-appconn/dss-appconn-manager/dss-appconn-manager-core/src/main/java/com/webank/wedatasphere/dss/appconn/manager/impl

1 file changed

+7
-0
lines changed

dss-appconn/dss-appconn-manager/dss-appconn-manager-core/src/main/java/com/webank/wedatasphere/dss/appconn/manager/impl/AppConnRefreshThread.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public List<? extends AppConnInfo> getAppConnInfos() {
3838

3939
@Override
4040
public void run() {
41+
try{
42+
run0();
43+
}catch (Exception e){
44+
LOGGER.error("refresh appconn failed,we will try again next time.",e);
45+
}
46+
}
47+
private void run0() {
4148
LOGGER.info("try to refresh all AppConns.");
4249
List<? extends AppConnInfo> appConnInfos;
4350
try {

0 commit comments

Comments
 (0)