I installed two copies of IDE as specified in 102729. Two IDEs were linked with
one AS. I started IDEs and made command start AS in both. In result mixed log
from two AS starting processes appeared in IDE. This log co9ntains both this:
A conflict occured on port 8080 . Server is shutting down.
Application server startup complete.
It's bit strange in my opinion.
Created attachment 41818 [details]
See also 102735 for important details.
Looks like server plugin needs improvement.
two independent processes both try to start the server.. using asadmin start-server. one of them has to find the ports
in use and that start will fail... The start fails because the server is starting/started by another process...
This could be improved, but there isn't a lot of reason to do it...
Changing to enhancement
So you think it's good idea to show both success and failed reports next lines?
Does the v3 plugin have similar issues? Is it worth correcting in the v3 plugin, if this issue exists?
I don't think Vince was saying that it was good -- more that it wasn't necessarily worth the effort to fix it. In this
case, the use case is fairly contrived -- there have to be two start vectors (two IDE's in your case) for the server and
they have to be starting it at the same time. I can't imagine this is going to happen very often. Furthermore
detecting this sort of interaction between processes is hard enough in C code, in Java, it's much more difficult and
runs serious risk of regressions that are worse than the problem.
I expect the V3 plugin suffers from a similar bug. OTOH, I can't think of a way (not using native code) to detect that
some other process on the system is starting the server at the same time a particular plugin instance is.
OTOH was suppose to be "Off the top of my head...", in the above comment.
no bug should be assigned to issues. distributing the load.