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

Read process output from a new Thread #33438

Merged
merged 1 commit into from
May 18, 2023

Conversation

iocanel
Copy link
Contributor

@iocanel iocanel commented May 17, 2023

The pull request uses a new Thread to read the process output (in ExecUtil).
This seems to work around the issue we are dealing with in pull request: #33410

Update
The failure seems to originate from an SO that occurs when logging. The SO is most probably a side effect of https://github.com/apache/maven-script-interpreter/blob/master/src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java#L54 messing with System.out / System.err. This seem to somehow upset jboss logging, causing SO.

The original pull request moved logging to each thread, so the SO didn't affect the main thread. However, it didn't fix the logging output which created log files of almost 2G.

The followup commit introduces the option to use system logging, which seems to be a better choice for code invoked from maven-invoker plugin and GroovySciprtInterpreter.

It also updates the verify.groovy files that use Exec so that they all use system logging.

@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label May 17, 2023
@iocanel iocanel force-pushed the container-invoker-fixes branch from de0b241 to 5c237be Compare May 17, 2023 14:51
@iocanel iocanel requested a review from geoand May 17, 2023 14:51
@geoand
Copy link
Contributor

geoand commented May 17, 2023

Can you describe the rationale behind the latest changes?

@iocanel
Copy link
Contributor Author

iocanel commented May 17, 2023

@geoand description updated.

@quarkus-bot
Copy link

quarkus-bot bot commented May 18, 2023

Failing Jobs - Building 5c237be

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
✔️ JVM Tests - JDK 17
JVM Tests - JDK 17 Windows Build ⚠️ Check → Logs Raw logs
✔️ JVM Tests - JDK 19

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@geoand geoand merged commit f2a18a8 into quarkusio:main May 18, 2023
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label May 18, 2023
@quarkus-bot quarkus-bot bot added this to the 3.2 - main milestone May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants