[Improvement-17788] [TaskPlugin] Optimization of log processing for RemoteShellTask#17800
[Improvement-17788] [TaskPlugin] Optimization of log processing for RemoteShellTask#17800SbloodyS merged 16 commits intoapache:devfrom
Conversation
|
@SbloodyS |
I've already rerun all tests. |
b9fe19f to
8e9215a
Compare
|
@qiong-zhou CI issue fixed by #17807 |
|
@ruanwenjun ok thanks. |
71427b6 to
6e059cc
Compare
Right now, the CI need committer approve, this is primarily to reduce unnecessary CI resource consumption. If we can move the CI action to developer's repo, then we can remove this. |
|
@SbloodyS Please review the code. |
|
… Pipe closed error Revert the channel output reading approach introduced in apache#17800 from getInvertedOut() back to setOut(ByteArrayOutputStream), which fixes two regression bugs: 1. NPE: getInvertedOut() returns null before channel.open() completes 2. Pipe closed after 0 cycles: ChannelPipedInputStream throws IOException when command produces no output
… Pipe closed error Revert the channel output reading approach introduced in apache#17800 from getInvertedOut() back to setOut(ByteArrayOutputStream), which fixes two regression bugs: 1. NPE: getInvertedOut() returns null before channel.open() completes 2. Pipe closed after 0 cycles: ChannelPipedInputStream throws IOException when command produces no output



Purpose of the pull request
Optimization of log processing for RemoteShellTask. Reading the logs by line to avoid large string. close #17788
Brief change log
Modified
RemoteExecutor.javaVerify this pull request
This change added tests and can be verified as follows:
testTrack()inRemoteExecutorTestto verify the change.