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

FISH-6588 Embedded EJB Container NPE Fix #6008

Conversation

Pandrex247
Copy link
Member

Description

Bug fix for the PayaraExecutorService encountering NPEs during use in an Embedded EJB Container.

With ApplicationLoaderService now starting at run level 15 rather tha 10, this meant the ALL_APPLICATIONS_LOADED event was firing later than before, leading to the thread pools in the PayaraExecutorService still being null during the "half-restarts" that occur when using the Embedded EJB Container.

These "half-restarts" only re-initialise some services, not all, which was leading to the thread pools in PayaraExecutorService being nulled from receiving the SERVER_SHUTDOWN event, but never being reinitialised.

Since the SERVER_START event doesn't get fired until after run-level 10 (our NPE happens at run-level 10), I've created a new event to get fired after run-level 1.

Important Info

Blockers

None

Testing

See #6007

Documentation

N/A

Notes for Reviewers

See #6007

Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
@Pandrex247
Copy link
Member Author

Jenkins test please

2 similar comments
@Pandrex247
Copy link
Member Author

Jenkins test please

@Pandrex247
Copy link
Member Author

Jenkins test please

@Pandrex247
Copy link
Member Author

Port of #6007

Copy link
Contributor

@breakponchito breakponchito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@breakponchito
Copy link
Contributor

Jenkins test please

@Pandrex247 Pandrex247 merged commit e5c4590 into payara:Payara6 Nov 3, 2022
@Pandrex247 Pandrex247 deleted the FISH-6588-PayaraExecutorService-Fix-No-Revert-P6 branch November 3, 2022 15:01
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.

2 participants