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

payara-3696-acc-executor-service #3936

Merged
merged 4 commits into from
May 8, 2019
Merged

payara-3696-acc-executor-service #3936

merged 4 commits into from
May 8, 2019

Conversation

arjantijms
Copy link
Contributor

@arjantijms arjantijms commented May 7, 2019

Payara-3696 Don't init executor service when in ACC

Hint for reviewers; review per individual commit. The first commit is adding a debug option to the ACC start, since it's otherwise quite difficult to debug the agent code for the ACC.

The second commit fixes the exception during startup of the ACC by not initialising the executor service on the client-side.

@arjantijms arjantijms added this to the 5.192 milestone May 7, 2019
@arjantijms
Copy link
Contributor Author

Jenkins test please

Copy link
Contributor

@pdudits pdudits left a comment

Choose a reason for hiding this comment

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

I'm afraid this may lead to null pointer exceptions down the road at other places.
What about if the service hosted its own default config when attempts to inject it fail?

@arjantijms
Copy link
Contributor Author

I'm afraid this may lead to null pointer exceptions down the road at other places.

I think we'd seen those already then, as initialisation was already skipped, just with an NPE before.

Copy link
Contributor

@MattGill98 MattGill98 left a comment

Choose a reason for hiding this comment

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

LGTM. Are there tests planned to make sure this runs without exceptions?

@arjantijms
Copy link
Contributor Author

Jenkins test please

TimeUnit.valueOf(payaraExecutorServiceConfiguration.getThreadPoolExecutorKeepAliveTimeUnit()),
new LinkedBlockingQueue<>(threadPoolExecutorQueueSize),
(Runnable r) -> new Thread(r, "payara-executor-service-task"));
0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to move the configured properties to local variables and override them if isAcc passes?

@arjantijms arjantijms merged commit c75db44 into payara:master May 8, 2019
@arjantijms arjantijms deleted the PAYARA-3696-acc-executor-service branch May 16, 2019 16:56
AlanRoth pushed a commit to AlanRoth/Payara that referenced this pull request Aug 13, 2019
fixes for Eclipse Jenkins environment (adaptopenjdk, shell etc)
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