Skip to content

Conversation

@muthuraj-mariappan
Copy link
Contributor

@muthuraj-mariappan muthuraj-mariappan commented Nov 29, 2023

ReplacingInputStream.read() is a blocking call. It waits for stream closure, exception or the byte buffer limit to return the read bytes to the caller. In the case of jbossdm-plugin's CliDaemon.waitForCliStart it uses a TimedoutInputStreamReader and manipulates the data read from the stream to identify if the script has started fine. This is causing the TimeoutException.
Added a test in ReplacingInputStreamTest.shouldExitFineWhenPatternNotFoundInInputStream() to reproduce the same scenario.

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants