Skip to content

[MNG-7455] Another attempt to fix the concurrency issue#716

Closed
gnodet wants to merge 2 commits intoapache:maven-3.9.xfrom
gnodet:MNG-7455-bis
Closed

[MNG-7455] Another attempt to fix the concurrency issue#716
gnodet wants to merge 2 commits intoapache:maven-3.9.xfrom
gnodet:MNG-7455-bis

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Apr 12, 2022

This is another attempt to fix the concurrency issue with minimal changes and without introducing back a thread local storage.
The downside of this proposal is that components annotated with @SessionScoped will always be injected the root session, which imho, is not really a problem as all derived sessions are cloned from the root one, except for the value of the MavenSession#getCurrentProject() which changes from one session to another.

The current scope is flawed anyway, as components are clearly not cached for all derived sessions, which was the original point of MNG-7347.

@laeubi
Copy link
Copy Markdown
Contributor

laeubi commented May 17, 2022

is not really a problem as all derived sessions are cloned from the root one, except for the value of the MavenSession#getCurrentProject() which changes from one session to another.

I found especially this rather annoying, as one has to use the Legacy Support to get the "current" session.

@gnodet
Copy link
Copy Markdown
Contributor Author

gnodet commented May 17, 2022

is not really a problem as all derived sessions are cloned from the root one, except for the value of the MavenSession#getCurrentProject() which changes from one session to another.

I found especially this rather annoying, as one has to use the Legacy Support to get the "current" session.

I think #743 should solve MNG-7455 too.

@jira-importer
Copy link
Copy Markdown

Resolve #9008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants