This document lists the new features, enhancements, fixed issues and, removed or deprecated features for Hazelcast Platform 5.2-BETA-1 release. The numbers in the square brackets refer to the issues in Hazelcast's GitHub repositories.
New Features
- Streaming SQL: Hazelcast Platform now supports stream-to-stream joins. You can
combine data from different streams into a new stream which allows you to enrich the data
of one stream with the data of another. - Out-of-the-box Connector for Relational Databases: You were required to write Java code to get
data from an external storage system (such as a relational database) into Hazelcast by implementing
MapLoader
andMapStore
interfaces. With this release, you can achieve this in a "zero-code" way. - JDBC Connector: Hazelcast Platform's SQL engine now can connect to any database supporting the JDBC interface.
We have also added the SQL basedGenericMapStore
; a map store implementation which uses the JDBC connector.
Enhancements
SQL Engine
- Added support of the
Calc
operator to mergeProject
andFilter
. [#17058],
Distribution
- Upgraded the Kafka client library to version 2.8.1. [#20938]
Serialization
-
Removed the
BETA
annotations from the compact serialization
andGenericRecord
related classes, i.e., they are stable. Now, compact serialization is enabled by default. [#21997] -
Added support of
List
,ArrayList
,Set
,HashSet
,Map
, andHashMap
for the zero-config serializers. [#21980] -
Added a check to the array of
Compact
andGenericRecord
object fields, that does not allow
different item types and schemas in such fields. [#21958] -
Moved the
GenericRecord
andGenericRecordBuilder
interfaces to the newserialization.genericrecord
package. [#21955] -
In case there is a field type that is not supported by the
reflective serializer, now Hazelcast fails with an exception;
all JDK classes are now excluded from the zero-config serialization, meaning, they cannot be used as types,
field types, or array component types in the reflective serializers. [#21918] -
Hazelcast now does not provide methods to read a default value
in case of a missing field in the data. Instead, the following method
has been introduced inCompactReader
to check
the existence of a field with its name and kind.FieldKind getFieldKind(String fieldName);
You can use this method for fields that have changed
or have a potential to change in the future. [#21876] -
Moved the
type-name
andclass
configuration elements into thecompact-serialization
block.
Removed theregistered-classes
element. [#21861] -
Renamed the
cloneWithBuilder()
method asnewBuilderWithClone()
in theGenericRecord
class. [#21730] -
Added support for
char
fields in the compact serialization format. With this,char
,char[]
,Character
, andCharacter[]
fields are now supported in the reflective compact serializers. [#21054] -
Hazelcast now does not allow to create SQL mappings containing the compact format, when the compact serialization is not enabled, and
provides a meaningful error; previously this situation was producing confusing errors. [#20998]
Configuration
- Member discoveries in cloud environments (AWS, GCP, Azure, Kubernetes, Eureka) in Spring XML can be configured now using property placeholders. [#21995]
- Added configuration elements for external data stores used by map stores, and JDBC sinks and sources. [#21716]
- Added
offload
element to map store configuration. It is used to offload map store and loader operations for each map in the cluster.
This way, a map store operation does not block the next operations by blocking a partition thread indefinitely.
Partition threads are one of the most important shared resources in a cluster; this offloading enables faster completion of the operations in these threads. [#21651]
WAN Replication
- Improved the way how acknowledgements are handled for WAN synchronization, such that they are now sent asynchronously.
This makes the WAN synchronization progress much more reliable and WAN synchronization more resilient by doing retries if something goes wrong in any phase. [#21415]
=== Other Enhancements
- To ensure the availability of the CP subsystem, you can now transfer CP member leadership to another member:
There are cases when some CP members should not act as a leader. For example, a member with high load would not be a good leader, or, in a WAN deployment,
members in a primary datacenter may be preferred in order to minimize the latency between the clients and leader.
You can transfer the leadership using thecp-member-priority
configuration element. [#21941] - Improved the change data capture API:
** Introduced two new methods,newValue()
andoldValue()
, to compare values before and after an update of a record.
** Methods that are used to extract metadata are no longer doing on the fly parsing of the payload, meaning there won't be anyParsingException
and
you don't have to deal with those possible exceptions.
** Expose the Debezium source method, which takes a class instance instead ofString
with class name, to make the code more strongly-typed.
[#21536] - While https://github.com/hazelcast/hazelcast#building-from-source[building Hazelcast] from the source,
you can now use the booleanhazelcast.disable.docker.tests
property to ignore the tests that require Docker
to run (by setting it tofalse
). [#21087] - Improved connection handling. [#21631]
- Added support of dynamic update of IP addresses of cluster members. For this,
a new REST endpoint (hazelcast/rest/config/tcp-ip/member-list
) is introduced for getting and updating the member list at runtime.
This improves the split-brain recovery under even certain corner cases and ensures that the
cluster recovery from split-brain in every cluster setup can be initially formed. [#20552] - Added support of nested fields for Hazelcast's Java classes. [#19954]
Fixes
- Fixed an issue where an internal periodic task (with an interval of 1 second) was trying to connect a client to all cluster members, even if there is no connection to the cluster yet:
** A client connects to the cluster (where smart routing is enabled by default)
** Connection is lost due to a failure
** When the cluster is up, the client retries to connect for the configured wait time between retries
** During these reconnection attempts, the internal periodic task was outputting logs of connection failure for each second until the client connects to the cluster.
[#21705] - Fixed an issue where the SQL storage was not able to replicate data to the newly joined members in the cluster. [#21632]
- Fixed an issue where
NullPointerException
was thrown around theCREATE JOB
statement which is using Kafka Sink connector when Kafka has no records yet. Now, it produces an appropriate log message. [#21460] - Fixed an issue where a cluster could not be formed when security is enabled, various client permissions are set,
and multiple members are started simultaneously. [#21440] - Fixed an issue where data persistence and tiered storage configurations could not be added dynamically. [#21432]
- Fixed a data loss issue which was occurring with graceful shutdown with when a member (with zero backup) restarts on the same address. [#21428]
- Fixed an issue where a map remains empty after a put operation when the
max-idle-seconds
configuration has the value ofInteger.MAX_VALUE
. [#21409] - Fixed an issue where the connections were dropping in an active-active WAN replication setup using
advanced network configurations. [#21219] - Fixed an issue where a cluster was unresponsive when you perform a health check to see the members are in the safe state;
cluster members were hanging in theREPLICA_NOT_SYNC
state during such health checks. [#21145] - Fixed an issue where the statistics like puts and removals were not increasing when these operations are executed through Transactional interface. [#21086]
- Fixed an issue where a set time-to-live (TTL) duration for an entry was ignoring the split seconds.
For example, when you set TTL as 1 seconds and put an entry at 01:01:5.99 AM , then the entry was already
expired when you want to get this entry at 01:01:6.01 AM (should have been expired at 01:01:6.99 AM). [#21018] - Fixed a data race in
SingleProtocolEncoder
; while one method of this interface is called from the input thread,
another one is called from the output thread which was causing the race.[#20991] - Fixed an issue where the automatic module name in
hazelcast-5.x.jar
could not be detected using Gradle. The reason was
/META-INF/MANIFEST.MF
not being the first or second entry in the JAR file; now this manifest file is the second entry. [#20969] - Fixed an issue where the list of members in the cluster was reset to an empty list when the UUID of a cluster changes after its restart:
this was causing startup failures since Hazelcast could not manage the events due to the empty member list after a restart. [#20818] - Fixed an issue where
JSON_QUERY
with expression filter in SQL was not producing a result when the data source contains internal array(s). [#20761] - Fixed the mapping issue of Hazelcast map fields in SQL; when the value object contains a public getter of
java.util.Map
, theCREATE MAPPING
statement was failing. [#20256] - Fixed an issue where the cluster was not merging properly if the master member does not know other members' addresses and when the other members start before the master member. [#18661]
Contributors
We would like to thank the contributors from our open source community
who worked on this release: