Skip to content

Commit 87c26d7

Browse files
committed
合并冲突
1 parent e33b6a0 commit 87c26d7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,14 @@ protected void dealCacheData(String key, CacheObj missKeyObj) {
122122

123123
@Override
124124
public void timeout(CRow input, ResultFuture<CRow> resultFuture) throws Exception {
125-
StreamRecordQueueEntry<CRow> future = (StreamRecordQueueEntry<CRow>)resultFuture;
126-
try {
127-
if (null == future.get()) {
128-
resultFuture.completeExceptionally(new TimeoutException("Async function call has timed out."));
129-
}
130-
} catch (Exception e) {
131-
resultFuture.completeExceptionally(new Exception(e));
125+
126+
if(timeOutNum % TIMEOUT_LOG_FLUSH_NUM == 0){
127+
LOG.info("Async function call has timed out. input:{}, timeOutNum:{}",input.toString(), timeOutNum);
128+
}
129+
130+
timeOutNum ++;
131+
if(timeOutNum > sideInfo.getSideTableInfo().getAsyncTimeoutNumLimit()){
132+
resultFuture.complete(null);
132133
}
133134
}
134135

0 commit comments

Comments
 (0)