Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D-27727 - failure with INTERACTIVE_SUDO connection type #313

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

Copy link

sonarcloud bot commented Nov 20, 2024

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.

1 participant