Payara icon indicating copy to clipboard operation
Payara copied to clipboard

Payara Micro "--nocluster" prevents JCache usage / FISH-372

Open Herr-Sepp opened this issue 4 years ago • 6 comments

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:

Herr-Sepp avatar Aug 07 '20 15:08 Herr-Sepp

This is by design however I have marked as enhancement as we could switch to an in-memory JCache implementation.

smillidge avatar Aug 10 '20 11:08 smillidge

I would just mention this in documentation, I think that would be much, much easier :)

lprimak avatar Aug 10 '20 18:08 lprimak

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.

MeroRai avatar Mar 01 '21 13:03 MeroRai

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.

Herr-Sepp avatar Mar 11 '21 14:03 Herr-Sepp

Hi @Herr-Sepp, thank you for your understanding. I will get the current behaviour documented.

MeroRai avatar Mar 15 '21 09:03 MeroRai

@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.

fturizo avatar Jul 09 '21 20:07 fturizo