Skip to content

在使用ShellProcessor时,成功执行目标脚本成功,打印日志时触发随机异常 #682

@studyAction

Description

@studyAction

在使用ShellProcessor时,可以正常执行目标脚本,执行到copyStream() 时,对应到tech.powerjob.official.processors.impl.script.AbstractScriptProcessor第85行代码,会出现随机的异常Java.io.IOException: Stream closed,debug模式加断点会再次触发该异常。

Expected behavior
copyStream()中的readLine()方法,该处异常理论上已经被捕获,不应该被显式地抛出

Environment

  • PowerJob Version: [4.3.3]
  • Java Version: [OpenJDK 8]
  • OS: [win11]

Screenshots
image
image
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions