Skip to content

Commit 8c8c977

Browse files
author
gituser
committed
Merge branch 'hotfix_1.10_4.0.x_32501' into 1.10_release_4.0.x
2 parents 9f1efa6 + 88f67c3 commit 8c8c977

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.dtstack.flink.sql.enums.ECacheType;
2424
import com.dtstack.flink.sql.side.AbstractSideTableInfo;
2525
import com.dtstack.flink.sql.util.MathUtil;
26+
import org.apache.flink.util.Preconditions;
2627

2728
import java.util.Map;
2829
import java.util.regex.Matcher;
@@ -124,6 +125,12 @@ protected void parseCacheProp(AbstractSideTableInfo sideTableInfo, Map<String, O
124125
sideTableInfo.setConnectRetryMaxNum(connectRetryMaxNum);
125126
}
126127
}
128+
129+
if (props.containsKey(AbstractSideTableInfo.ASYNC_REQ_POOL_KEY.toLowerCase())) {
130+
Integer asyncPoolSize = MathUtil.getIntegerVal(props.get(AbstractSideTableInfo.ASYNC_REQ_POOL_KEY.toLowerCase()));
131+
Preconditions.checkArgument(asyncPoolSize > 0 && asyncPoolSize <= 20, "asyncPoolSize size limit (0,20]");
132+
sideTableInfo.setAsyncPoolSize(asyncPoolSize);
133+
}
127134
}
128135
}
129136
}

0 commit comments

Comments
 (0)