[ 
https://issues.apache.org/jira/browse/CAMEL-24413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18106752#comment-18106752
 ] 

Andrea Cosentino commented on CAMEL-24413:
------------------------------------------

Fixed on main via https://github.com/apache/camel/pull/25566 (4.23.0). Main 
only: relies on the shared default serialization filter 
(DeserializationFilterHelper) which is not present on the maintenance branches.

> camel-hazelcast - ReplicatedHazelcastAggregationRepository does not apply the 
> default serialization filter
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24413
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24413
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-hazelcast
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.23.0
>
>
> CAMEL-23414 introduced 
> HazelcastSerializationFilterHelper.applyDefault(Config) and called it from 
> every place where camel-hazelcast bootstraps its own managed Hazelcast 
> instance:
> * HazelcastAggregationRepository.doStart() (line 454)
> * HazelcastIdempotentRepository (line 63)
> * HazelcastDefaultComponent (line 166)
> * HazelcastUtil (line 38)
> ReplicatedHazelcastAggregationRepository.doStart() builds its Config the same 
> way but was missed:
>     Config cfg = new XmlConfigBuilder().build();
>     cfg.setProperty("hazelcast.version.check.enabled", "false");
>     hazelcastInstance = Hazelcast.newHazelcastInstance(cfg);
> The class predates CAMEL-23414 and was never updated, so a route using the 
> replicated repository without injecting its own hazelcastInstance runs with 
> different defaults from every sibling.
> Proposal: add the missing 
> HazelcastSerializationFilterHelper.applyDefault(cfg) call so all five 
> bootstrap sites behave identically, plus a test asserting the filter is 
> present on the replicated repository's own instance. Backport alongside 
> CAMEL-23414's own backports (4.14.x, 4.18.x).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to