Andrea Cosentino created CAMEL-24413:
----------------------------------------
Summary: 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
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)