-
Bug
-
Resolution: Done
-
Major
-
7.1.0.ER1
-
None
-
-
-
-
-
-
Not Required
This jira is cloned from WFCORE-2985:
When the output stream is closed, if aesh is reading on the other side of the stream inside the CLI process, this could make the CLI process to exit. That is occurring systematically with aesh-readline.
ProcessWrapper.waitForClose is called in the following cases:
- ctrlCAndWaitForClose: The test expects that Ctrl-C will make the process to exit.
- pushLineAndWaitForClose: The test expects that the passed command will make the process to exit (e.g.: quit)
- executeNonInteractive: The test expects that the CLI process will exit by itself, no aesh console started (file or command options). In this case, closing the output stream shouldn't hide any issue. But it shouldn't be required either.
If closing the output stream makes the CLI process to exit it could hide potential CLI issues.
I suggest that we remove the output stream.close once we have switched to use aesh-readline and see on all platforms how tests are going to behave. We could have exotic platforms that don't make the process to exit properly if output is not closed. We will have to handle them specificaly.
- clones
-
WFCORE-2985 ProcessWrapper.waitForClose shouldn't close the output stream
- Resolved
- is incorporated by
-
JBEAP-12932 Upgrade WildFly Core to 4.0.1.Final
- Closed
- relates to
-
JBEAP-10797 Intermittent failures in RemoveManagementRealmTestCase.testAnyCommand
- Closed
-
JBEAP-11681 Unignore RemoveManagementRealmTestCase
- Closed