-
Notifications
You must be signed in to change notification settings - Fork 306
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-796 Fix clustered singleton bugs and added test #5012
FISH-796 Fix clustered singleton bugs and added test #5012
Conversation
jenkins test |
2 similar comments
jenkins test |
jenkins test |
6f59378
to
dfc9ddc
Compare
jenkins test |
1 similar comment
jenkins test |
jenkins test |
1 similar comment
jenkins test |
jenkins test |
I'm curious if this would help my current issue with Hazelcast vs. docker node start, where is some race condition blocking the docker node instance start for one minute, because hazelcast on das starts some migration before node finishes it's startup -> it fails again and again each 5 seconds, after one minute it gives up and node finishes startup. Whole test finishes in cca 135 seconds. |
Not sure, but my gut says no, but Hazelcast 4.1 migration could |
...icro-cdi/src/main/java/fish/payara/micro/cdi/extension/cluster/ClusterScopedInterceptor.java
Outdated
Show resolved
Hide resolved
...erver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/AbstractSingletonContainer.java
Outdated
Show resolved
Hide resolved
jenkins test |
511ef8d
to
d2d7e9e
Compare
jenkins test |
1 similar comment
jenkins test |
040d4d5
to
efab4a7
Compare
jenkins test |
jenkins test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks broadly good, just a couple of questions
.../tests/payara-samples/samples/clustered-singleton/clustered-singleton-test/licenseheader.txt
Outdated
Show resolved
Hide resolved
...leton-test/src/main/java/com/flowlogix/clust/singleton/interceptor/ClusteredInterceptor.java
Outdated
Show resolved
Hide resolved
...leton-test/src/main/java/com/flowlogix/clust/singleton/interceptor/ClusteredInterceptor.java
Outdated
Show resolved
Hide resolved
jenkins test |
...leton-test/src/main/java/fish/payara/samples/clustered/singleton/ClusteredAnnotatedAPI2.java
Outdated
Show resolved
Hide resolved
jenkins test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't gone through it with anything like a fine-toothed comb, but the tests pass and no obvious purple elephants from a skim over the code.
Hello there! @lprimak may I kindly share with you some early feedback as per this fix. Yesterday I have downloaded the new release of Payara Micro 5.2021.1 (which includes this fix) and started with testing persistent schedules functionality (we use both ways of creating them with Please see below my findings considering the Payara Micro Community documentation for persistent timers -> How EJB timers are persisted. In my tests we are considering two scenarios (by using cluster with two nodes launched with arguments: Scenario 1: instance (node1) that created persistent timer goes DOWN. In pre-5.2021.1 versions (e.g. 5.2020.7): Since 5.2021.1 seems that was fixed, and now persistent timer doesn't run in the cluster (what basically corresponds to the documentation "Until that time, the timer becomes inactive."). Seems all works in compliance with the documentation (spec) now, except that timer managed to run once on another node, but okay, in general - no action needed. Scenario 2: instance (node1) that created persistent timer goes UP after it was down. In pre-5.2021.1 versions (e.g. 5.2020.7) persistent timer was keep running on the another node (node2). As per 5.2021.1: According to the documentation the following should happen: "If that instance goes down, the timer will be recreated on another instance with the same name once it joins the cluster." This is our preliminary observations on the persistent timers behavior in Payara Micro 5.2021.1 with the fix according to this ticket. We will do our best to prepare and publish test applications and test scenarios for demonstrating the reported behavior and once it is done and fully confirmed in our tests - we will register it as a separate issue. Thank you! |
…Singleton-Bugs FISH-796 Fix clustered singleton bugs and added test
Description
As I upgraded the code to Hazelcast 4, one of my tests was clustered singleton.
In the process of doing this, I found a few bugs, and re-added test
Important Info
Relates to #5014 and #5013
Testing
New tests
added back tests in Payara root to test clustered singleton
Testing Performed
automated and manual tests, as well as suite
Testing Environment
JDK 8, Mac
Notes for Reviewers
The PR seems big, but it's mostly new test files added