Skip to content

Commit 28294ff

Browse files
author
dapeng
committed
修改初始值和判断逻辑
1 parent 48dd0c0 commit 28294ff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/main/java/com/dtstack/flink/sql/side/AsyncReqRow.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public void timeout(Row input, ResultFuture<Row> resultFuture) throws Exception
130130
timeOutNum ++;
131131
if(timeOutNum > sideInfo.getSideTableInfo().getAsyncTimeoutNumLimit()){
132132
resultFuture.completeExceptionally(new Exception("Async function call timedoutNum beyond limit."));
133+
} else {
134+
resultFuture.complete(null);
133135
}
134136
}
135137

core/src/main/java/com/dtstack/flink/sql/side/SideTableInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public abstract class SideTableInfo extends TableInfo implements Serializable {
6565

6666
private int asyncTimeout=10000;
6767

68-
private int asyncTimeoutNumLimit = 0;
68+
private int asyncTimeoutNumLimit = Integer.MAX_VALUE;
6969

7070
private boolean partitionedJoin = false;
7171

0 commit comments

Comments
 (0)