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
prefer use of InheritableThreadLocal to fix possible issue when mojo start a thread and try to access some artifacts #521
Conversation
Merci! Do you think it is worth creating a unit test or IT to depict how it helps solving a problem? |
Issue created: MNG-7212 |
… when mojo starts a thread and tries to access some artifacts Signed-off-by: Olivier Lamy <olamy@apache.org> This closes #521
509aece
to
8fae1d9
Compare
… when mojo starts a thread and tries to access some artifacts Signed-off-by: Olivier Lamy <olamy@apache.org> This closes #521
Btw, with this change, the orginal concurrency issue (that was addressed by #413) might come back in another form. |
Having said the above, as long as the original problem with aggregating goals is still fixed with change (I'll check later), I think it should be ok to merge. |
@michael-o yup sure do it. #578 just introduce a very high level (unmaintainable? really needed?) complexity. |
To be honest, I cannot judge either. Can you add your opinion to #578, please? I'd really prefer to release 3.8.4 without and take more time to properly analyze the new proposal, but as you can see people only complain with releases. |
InheritableThreadLocal works only when subclassloader tree is controlled and can accept its value leakage. It is the case for jetty but not for all mojo so iy is not a good solution neither as a generic one. 578 has soem drawback but at least monothreaded case does not involve any of the regressions seen with last releases with is the minimum expectation IMHO. |
Do you see #578 as mergeable at all or shall we seek out for a completely different solution? |
578 gets backs to an usable state for most case with a fully functional one with 1 thread so i would merge it yes. |
And that superseded this PR for you? |
Yes |
I personally would prefer #476 over my PR #578 because it seems to be more efficient and catches more cases. |
Ooph, I need to digest this first. Thanks for a proper analysis. Maybe not to merge #578 at all in 3.8.x and not add something incomplete, but rather wait for 3.9.0 for #476? |
I would agree with #476 but didn't get much time to test but if you are confident it is better than any thread local solution anyway so happy to go with it too. |
As far as I understood this discussion this is superseded by the two other PRs. |
Signed-off-by: Olivier Lamy olamy@apache.org
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MNG-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MNG-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.