Skip to content
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

Incorrect diagnostics "ERROR: cdi-4.0 is already included." #256

Closed
scottkurz opened this issue Dec 4, 2023 · 0 comments · Fixed by #257
Closed

Incorrect diagnostics "ERROR: cdi-4.0 is already included." #256

scottkurz opened this issue Dec 4, 2023 · 0 comments · Fixed by #257
Assignees

Comments

@scottkurz
Copy link
Member

With LCLS v2.1.1 in LTE 23.0.12 we sometimes get diagnostics like:
"ERROR: cdi-4.0 is already included." with the red X and underline in server.xml

I watched this happen in the debugger.

The problem centers around the same LibertyDiagnosticParticipant instance getting used across two threads, with a field holding the features: private Set<String> includedFeatures;.

This would seem to need to be refactored to use a local/stack variable.

I'm taking for granted there's nothing wrong with the high-level flow re: why we're calling diagnostics across 2 threads in the first place. I've no reason to think that's wrong, but let me know if anyone disagrees.

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 a pull request may close this issue.

2 participants