Skip to content

Commit 3ba019d

Browse files
author
dapeng
committed
fix
1 parent ae6784f commit 3ba019d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/src/main/java/com/dtstack/flink/sql/table/AbstractSideTableParser.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ protected void parseCacheProp(AbstractSideTableInfo sideTableInfo, Map<String, O
110110
sideTableInfo.setAsyncTimeout(asyncTimeout);
111111
}
112112

113+
if(props.containsKey(AbstractSideTableInfo.ASYNC_FAIL_MAX_NUM_KEY.toLowerCase())){
114+
Long asyncFailMaxNum = MathUtil.getLongVal(props.get(AbstractSideTableInfo.ASYNC_FAIL_MAX_NUM_KEY.toLowerCase()));
115+
if (asyncFailMaxNum<0){
116+
throw new RuntimeException("asyncFailMaxNum need > 0.");
117+
}
118+
sideTableInfo.setAsyncFailMaxNum(asyncFailMaxNum);
119+
}
120+
113121
if(props.containsKey(AbstractSideTableInfo.CONNECT_RETRY_MAX_NUM_KEY.toLowerCase())){
114122
Integer connectRetryMaxNum = MathUtil.getIntegerVal(props.get(AbstractSideTableInfo.CONNECT_RETRY_MAX_NUM_KEY.toLowerCase()));
115123
if (connectRetryMaxNum > 0){

0 commit comments

Comments
 (0)