[
https://issues.apache.org/jira/browse/NIFI-16646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Witt updated NIFI-16646:
----------------------------
Status: Patch Available (was: Open)
> Deprecate Hazelcast bundle and move to optional Maven profile
> -------------------------------------------------------------
>
> Key: NIFI-16646
> URL: https://issues.apache.org/jira/browse/NIFI-16646
> Project: Apache NiFi
> Issue Type: Task
> Reporter: Joe Witt
> Assignee: Joe Witt
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Hazelcast Community Edition 5.7.0 bundles shaded and relocated copies of
> Jackson 2 (2.21.2), Jackson 3 (3.1.2) and org.json (20250107) under
> com/hazelcast/shaded/. NiFi cannot update these libraries independently. The
> Hazelcast project has stated that it does not publish patch releases for the
> Community Edition, that fixes arrive only in the next minor or major release,
> and that there is no timeline for it (hazelcast/hazelcast#26597, #26623,
> #26646). The latest release is still 5.7.0.
> As a result:
> The SBOM scan of the default NiFi assembly in the Code Compliance workflow
> reports Hazelcast-shaded Jackson and org.json findings every time a new
> advisory is published, which fails the build on main.
> .grype.yaml has accumulated 22 ignore entries for this bundle (NIFI-16244),
> and each new advisory requires more.
> NiFi cannot remediate the findings directly. Repackaging Hazelcast without
> Jackson 3 breaks IMap operations, because Hazelcast's core map code loads the
> shaded Jackson 3 classes. That was tested and rejected.
> The Hazelcast bundle provides three controller services:
> HazelcastMapCacheClient, EmbeddedHazelcastCacheManager and
> ExternalHazelcastCacheManager. They are one of several
> DistributedMapCacheClient implementations. Alternatives that ship in the
> default assembly are RedisDistributedMapCacheClientService and
> MapCacheClientService.
> Proposed changes:
> Mark the three Hazelcast controller services with @DeprecationNotice, listing
> the alternatives on HazelcastMapCacheClient.
> Move nifi-hazelcast-services-api-nar and nifi-hazelcast-services-nar from the
> default nifi-assembly dependencies into a new include-hazelcast profile,
> activated by -DallProfiles, following the NIFI-16465 Couchbase pattern.
> Document the include-hazelcast profile in the Developer Guide.
> Remove the Hazelcast ignore entries from .grype.yaml, since the bundle no
> longer ships in the default assembly.
> The Hazelcast modules remain in the build and can be included with
> -DallProfiles. Removing the bundle can follow in a later release, as was done
> for ConsumeTwitter (NIFI-15882, then NIFI-16115).
> Impact: the default convenience binary will no longer contain the Hazelcast
> NARs, so this needs a release note. Flows that use these services will show
> missing components unless users build with -DallProfiles or move to Redis or
> the built-in map cache client.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)