Payara
Payara copied to clipboard
Payara Micro "--nocluster" prevents JCache usage / FISH-372
Description
The Documentation says that --nocluster
"Disables clustering for this instance."
but it seams that it disables Hazelcast completly because i can't use JCache with --no-cluster activated:
[2020-08-07T16:49:19.313+0200] [] [WARNING] [] [fish.payara.cdi.jsr107.JSR107Producer] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1596811759313] [levelValue: 900] Unable to inject Cache as Hazelcast is Disabled
Expected Outcome
Jcache should be useable even with switch --nocluster or it should be mentioned in the documentation that --nocluster disables Hazelcast with all its side effects (maybe a better name for the switch at all)
Current Outcome
Any code that used JCache cannot deployed with --nocluster
Environment
- Payara Version: 5.2020.3
- Edition: Micro Docker Image
- JDK Version: zulu11-jdk
- Operating System: Docker
- Database:
This is by design however I have marked as enhancement as we could switch to an in-memory JCache implementation.
I would just mention this in documentation, I think that would be much, much easier :)
Hello @Herr-Sepp, starting today we are introducing some relevant changes to our Github Issues Community Policy, which you can read here. The most significant change is that we want to introduce open votes for all suggested enhancements and improvements to the Payara Platform, like the one described in this issue. To this effect, we are going to transition this issue to Voting status and gauge the community interest in your proposal. We know that previously we accepted your request and escalated it to our Platform Development team, but after careful deliberation and analysis, we want to improve our community engagement in a way that’s productive and relevant for our overall user community. We hope that you understand this decision.
Hi @MeroRai, thanks for informing about the change and I understand this decision. Nevertheless, or precisely because this feature is not being worked on right now, the current behavior should be documented.
Hi @Herr-Sepp, thank you for your understanding. I will get the current behaviour documented.
@Herr-Sepp, we have an update on your request. Our product manager has proposed a set of enhancements based on your request, and as such the following arguments will be introduced in a future release of Payara Micro:
-
--noHazelcast
: will do what--noCluster
does today, i.e. no Hazelcast, JCache and clustering capabilities will be enabled. -
--noCluster
: will instead disable the clustering capabilities of Hazelcast, but JCache/Hazelcast will still be available.
This of course will introduce breaking changes, but will bring clarity to what the arguments do and prevent further confusion. Expect these enhancements to be implemented in a future release.