You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/04/02 10:07:54 UTC

[incubator-linkis] 02/02: Modify the timeout judgment condition of DevFlinkSQLStreamingListener

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit 0803dbadbb329f0708fc05dad7554be33b909f63
Author: maidangdang44 <ma...@126.com>
AuthorDate: Sat Apr 2 15:28:13 2022 +0800

    Modify the timeout judgment condition of DevFlinkSQLStreamingListener
---
 .../engineconnplugin/flink/executor/FlinkSQLComputationExecutor.scala   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linkis-engineconn-plugins/engineconn-plugins/flink/src/main/scala/org/apache/linkis/engineconnplugin/flink/executor/FlinkSQLComputationExecutor.scala b/linkis-engineconn-plugins/engineconn-plugins/flink/src/main/scala/org/apache/linkis/engineconnplugin/flink/executor/FlinkSQLComputationExecutor.scala
index 6aeca15..033d774 100644
--- a/linkis-engineconn-plugins/engineconn-plugins/flink/src/main/scala/org/apache/linkis/engineconnplugin/flink/executor/FlinkSQLComputationExecutor.scala
+++ b/linkis-engineconn-plugins/engineconn-plugins/flink/src/main/scala/org/apache/linkis/engineconnplugin/flink/executor/FlinkSQLComputationExecutor.scala
@@ -241,7 +241,7 @@ class DevFlinkSQLStreamingListener(jobOperation: JobOperation,
   }
 
   private val future = Utils.defaultScheduler.scheduleAtFixedRate(new Runnable {
-    override def run(): Unit = if (System.currentTimeMillis - lastPulledTime > maxWaitForResultTime) {
+    override def run(): Unit = if (System.currentTimeMillis - lastPulledTime >= maxWaitForResultTime) {
       warn(s"Job killed since reached the max time ${ByteTimeUtils.msDurationToString(maxWaitForResultTime)} of waiting for resultSet. Notice: only the dev environment will touch off the automatic kill.")
       stopJobOperation()
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org