apache / apache/linkis

[Bug] kill the data service in the query, resubmit, and the result set returned by the new task is abnormal

Open
#3,443 1 comment 0 reactions 1 assignee Claimed by @peacewong View on GitHub
bug
Dominant language
Java
Stars
3.4k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.

### Linkis Component

linkis-computation-governance

### Steps to reproduce

1. Query data service
2. Stop the data service
3. Immediately initiate data service query again
4. View the result set,and will find return two result sets
---------------------------------------------------------------------------------------------------
1、查询数据服务
2、kill任务
3、立刻再次查询该数据服务
4、查看结果集,会发现返回两个结果集,其中结果集1是前一个被kill任务的异常数据(图一)
5、提交scala任务后模拟上述操作,即提交任务-kill-立马再次发起-查看结果集,发现多返回一行数据(图二)
如下:
![image](https://user-images.githubusercontent.com/26829024/190847679-dc6607ae-51ed-4f33-8415-de16ea27feb4.png)
![企业微信截图_16633167793752](https://user-images.githubusercontent.com/26829024/190847816-452a4edc-eb3b-43fe-ad39-b518b8f044c9.png)

### Expected behavior

After the task is successfully executed, the returned result set data is correct

### Your environment

- Linkis version used: 1.1.2
- Environment name and version:
- cdh-5.14.2
- hdp-3.1.5
- hive-2.1.1
- spark-3.2.1
- scala-2.12.2
- jdk 1.8.0_121
- ....

### Anything else

_No response_

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.