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

SPEC-267: Fail operations on expired nonpersistent timers #4131

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

pdudits
Copy link
Contributor

@pdudits pdudits commented Aug 7, 2019

Spec mandates throwing an exception on accessing nonpersistent
expired timers when accessed over public API.
Since NonPersistentEJBTimerService is base class for persistent
implementations, which pass their non-persistent functionality to it,
it needs internal method for verifying it would handle that timer.

This fixed ejb32/lite/timer tests, while not breaking ejb30/timer/tests at same time.

Spec mandates throwing an exception on accessing nonpersistent
expired timers when accessed over public API.
Since NonPersistentEJBTimerService is base class for persistent
implementations, which pass their non-persistent functionality to it,
it needs internal method for verifying it would handle that timer.
@pdudits
Copy link
Contributor Author

pdudits commented Aug 7, 2019

jenkins test please

cancelTimerSynchronization(null, timerId,
rt.getContainerId(), ownerIdOfThisServer_, false);
if (rt == null) {
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

In case of cancellation, If a timer is null or already canceled then the container must throw javax.ejb.NoSuchObjectLocalException instead of FinderException (EJB Spec 3.2 - Section 13.4.4 Timer Cancellation).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This exception is wrapped into NoSuchObjectLocalException in TimerWrapper

@pdudits pdudits merged commit 45c2ae3 into payara:master Aug 8, 2019
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