-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Mark all goals as thread-safe #90
Comments
The plugin is not thread safe. It uses a static download location, and it extracts binaries to a single location, if multiple instances of the plugin try to download/extract at the same time you could end up with corrupted downloads/binaries. |
@Ardesco I reviewed the mentioned parts and added synchronized blocks. We are already running the plugin for multiple month with mvn -T1C and it works without problems. Is there anything else that I have to do? |
This may be worth reviewing: https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 |
To start off with, the fact you have had no problems running with multiple threads over x period of time does not mean that the plugin is thread safe, it just means you haven't got unlucky yet. Making the code thread safe is rarely as simple as sticking a synchronised keyword in a few places, all you are doing is forcing the code to queue up multiple requests that will be executed in a single thread (In other words you are blocking the code from running in multiple threads). To make the plugin thread safe we would need to do the following as a minimum:
It is possible to make the plugin thread safe, but it's going to take time, effort and require lots of testing. Also please do bear in mind that what you are seeing in your maven console is simply a warning, if everything works fine for you, you can just disregard it; it is a warning after all. |
@Ardesco thanks a lot for your description. I think I won't get the time from my employer to do the necessary work. For now I will just ignore the warning. |
We are using parallized maven builds (mvn -T1C). We do not experience any issues but we are currently getting the following Warning:
Is it possible to add @threadsafe to the selenium goal?
The text was updated successfully, but these errors were encountered: