When performing a spark task with scala, the task and spark engine will not be released correctly if the last line is a comment.[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-engineconnn-plugin
### Steps to reproduce
1.submit a scala task

2.Observe the task log to see that the task cannot succeed for a long time
### Expected behavior
Complete the task normally
### Your environment
- Linkis version used: 1.0.3
- Environment name and version:
- spark-2.4.0
- scala-2.11.12
- jdk 1.8.0_121
### Anything else
When the last line is a comment, the task completes and the last commit is "IncompleteExecuteResponse", while the subsequent logic does not process "IncompleteExecuteResponse".
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
Contributor guide
Assessment
This issue has not been assessed yet.