[
https://issues.apache.org/jira/browse/CAMEL-22041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060131#comment-18060131
]
Thomas Cunningham commented on CAMEL-22041:
-------------------------------------------
In Hazelcast 5.5+, the CP subsystem is unavailable in the community edition,
and is only available in the enterprise edition.
It appears like if we move to hazelcast 5.5+, the hazelcast-atomicvalue
(atomicnumber) component either needs to be removed or the data structure
backing it needs to change - the IAtomicLong it uses is a CP subsystem only
feature [https://docs.hazelcast.com/hazelcast/5.6/data-structures/iatomiclong]
. We can replace most of the functionality with a PNCounter
[https://docs.hazelcast.com/hazelcast/5.6/data-structures/pn-counter] with one
limitation - PNCounter does not offer a compare/compareAndSet method. I
think offering a new component here (hazelcast-pncounter) seems like a better
approach because it is more descriptive of the underlying data structure used
and because we would be removing significant functionality because no
compareAndSet is available.
We should deprecate hazelcast-atomicvalue (atomicnumber) in 4.19.0 and create a
hazelcast-pncounter to replace it. We can then safely remove
hazelcast-atomicvalue in a future release and upgrade to hazelcast 5.5.0 or
5.6.0.
https://github.com/apache/camel/pull/21551
> camel-hazelcast - Upgrade to 5.6
> --------------------------------
>
> Key: CAMEL-22041
> URL: https://issues.apache.org/jira/browse/CAMEL-22041
> Project: Camel
> Issue Type: Dependency upgrade
> Components: camel-hazelcast
> Reporter: Claus Ibsen
> Assignee: Thomas Cunningham
> Priority: Minor
> Fix For: 4.x
>
>
> They started to make features enterprise only from 5.5 onwards so we start to
> see these kind of errors in some tests
>
> [ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.116
> s <<< FAILURE! -- in
> org.apache.camel.processor.aggregate.hazelcast.HazelcastAggregationRepositoryConstructorsTest
> [ERROR]
> org.apache.camel.processor.aggregate.hazelcast.HazelcastAggregationRepositoryConstructorsTest.locallyInitializedHazelcastInstanceAdd
> -- Time elapsed: 0.037 s <<< FAILURE!
> org.opentest4j.AssertionFailedError: Unexpected exception thrown:
> java.lang.UnsupportedOperationException: CP subsystem is a licensed feature.
> Please ensure you have an Enterprise license that enables CP.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)