gnodet commented on code in PR #1270:
URL: https://github.com/apache/maven-mvnd/pull/1270#discussion_r4792997459
##########
client/src/main/java-mvnd/org/mvndaemon/mvnd/client/DefaultClient.java:
##########
@@ -349,6 +349,15 @@ public ExecutionResult execute(ClientOutput output,
List<String> argv) {
});
Environment.MVND_TERMINAL_WIDTH.addCommandLineOption(args, width);
+ if (parameters.property(Environment.MVND_DEBUG).asBoolean()) {
Review Comment:
**Thread safety concern**: Setting system properties without synchronization
could cause race conditions if multiple threads call execute() concurrently.
**Potential bug**: Verify that the DaemonConnector or its connect() method
re-reads these system properties. If the Parameters object has already cached
these values before this code runs, setting system properties here will have no
effect. Consider passing these as command-line arguments via
`Environment.MVND_KEEP_ALIVE.addCommandLineOption(args, "1h")` instead.
_Claude Code on behalf of Guillaume Nodet_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]