6.13.0 (24 November 2026)
Improvements in 6.13.0
.NET Client
DIF-6638: Changes.md Has Been Removed
The Changes.md file provided in previous .NET SDK releases will no longer be issued, as it duplicated much of what is already available in the release notes.
Apple Client
DIF-5751: Removal of Apple TV From Supported Apple SDK Frameworks
AppleTV support through the Apple SDK has been removed.
Client
DIF-1312: Improved Default Reconnection Strategy
Previously, if reconnection was enabled for a session (reconnection timeout > 0) and no reconnection strategy was specified, a default strategy that tried to reconnect every 5 seconds was used. This had the disadvantage that if many sessions disconnected at once, they would all try to reconnect at the same time, causing a flood of reconnection requests which would overload the server. The default strategy has been improved to use a random delay before each attempt, using a window that widens by 5 seconds after each try: 0–5 s, 5–10 s, 10–15 s, and so on, capping at 25–30 seconds. Attempts continue at that maximum window until the reconnection timeout expires.
DIF-4619: HTTP Redirect Handling
The Diffusion SDKs now follow an HTTP redirect of the WebSocket connection by the same rules. Previously they differed: some rejected http, https or relative locations, dropped the location's path or query, or retried a rejected redirect, and the Python client could follow a wss connection to an http location.
The Java, Android, .NET, Apple and Python clients, and the JavaScript client in Node.js:
- follow 301, 302, 307 and 308 to a ws, wss, http, https or relative location, keeping its path and query;.
- follow at most 5 redirects per connection attempt, never to a repeated URL or from a secure to an insecure connection;.
- start every reconnection from the original URL;.
- fail a rejected redirect without a retry, closing a reconnecting session.
The C client follows 301, 302, 303, 307 and 308, at most 3 times, never from a secure to an insecure connection. Browsers cannot follow a WebSocket redirect, so configure the load balancer to forward browser connections instead.
A rejected redirect fails with SessionEstablishmentException (Java, .NET), SessionEstablishmentError (Python), the new CloseReason.REDIRECT_REJECTED (JavaScript), error 20160 to 20164 or the new 20166 (Apple), or error 310 to 319, with new codes 313 and 314 (C; 311 is deprecated).
.NET: IReconnectionAttempt.Start no longer throws, and a reconnection strategy that fails before starting or aborting the attempt closes the session.
Python: TLS connections now verify the server's certificate and host name by default, so a server with a self-signed or privately issued certificate needs an SSL context that trusts it. The optional websockets transport needs websockets 15.0 or later.
DIF-5215: Support for Old Style Remote Server Builders Removed
Prior to release 6.9 there was only one type of Remote Server, which was a secondary initiator. The introduction of primary initiator and secondary acceptor at 6.9 necessitated a reworking of the remote server builders in the API. The previous builder was deprecated but retained for backwards compatibility, but it has been removed at this release.
DIF-5216: Deprecated UpdateStream Creation Methods Removed
The methods that create update streams were deprecated in release 6.9 in favour of an update stream builder. These methods have now been removed from the API.
DIF-5408: Reconnection Attempt is Now Available to Reconnection Strategies
Previously, a user could provide a reconnection strategy implementation when creating a session that would determine when the next reconnection attempt should be made, or whether the reconnection should be abandoned. However, the reconnection attempt object passed to the strategy did not indicate which attempt was being tried. This meant that it was difficult for the user to implement a sensible backoff policy. At this release, the reconnection attempt is provided with the attempt number so that the strategy can behave differently according to the attempt being made.
Configuration
DIF-4693: Redundant Entries Removed from XSD Files
Redundant entries have been removed from the Statistics.xsd and Connectors.xsd files.
Console
DIF-6586: Diffusion Management Console Improvements
Diffusion Management Console now incorporates various small updates to the user experience, including the ability to collapse the navigational sidebar.
Federation
DIF-5876: Remote Server Logging Improvements
In previous releases, remote server connections would log messages at ERROR level in secondary servers if a transient error occurred when connecting to a primary server, or when a connection to a primary server was lost. As both of these are recoverable situations that will automatically be retried, they should not be logged as errors. At this release, transient connection failures (PUSH-000810) or lost connections (PUSH-000811) will always be logged at WARN level. Additional error messages (PUSH-000995 and PUSH-000996) have been added to represent unrecoverable errors that may require manual intervention.
DIF-6160: New RemoteServers getRemoteServerState method
Previously, using the checkRemoteServer operation in the Remote Servers API would attempt to reconnect a failed remote server connection. This was also the case when querying the remote servers in the Diffusion Console. In this release, a new getRemoteServerState operation (in the Java, .NET, and JavaScript SDKs only) returns the current remote server state without attempting to retry the connection. The behaviour of the Console has also been updated - connections will only be manually retried once the user clicks the relevant button.
Java Client
DIF-5417: Session Cookie Support for Java Client
From 6.13, the Diffusion Java library resends the session cookie provided by the server in each subsequent HTTP request made by that session. The cookie is of the form ‘session=<session-token>’. In previous releases the session cookie was only replayed in HTTP requests made by the JavaScript library running within a web browser.
This allows network devices to manage sticky load balancing for Java clients.
Support for session cookies will be extended to other SDKs in future releases.
JavaScript Client
DIF-5903: Improved Retry Strategy
At this release, provision for supplying a retry strategy within the JavaScript client has been extended. (Retry logic applies during initial connection attempt, and also in handling of recoverable update stream errors.)
Where retry logic can be described using a strategy object containing 'interval' and 'attempts' parameters, an alternative approach is now possible. A controlling function may be provided, to be invoked at runtime with the active retry count. This allows for dynamic control of the retry interval, supporting a custom backoff strategy for instance. .
Persistence
DIF-6076: Topic Persistence Restore performance improvements
Performance of topic persistence restore has been improved in this release.
Python Client
DIF-5595: Python 3.13 and 3.14 Now Supported
Python SDK is now compatible and built against python versions 3.13 and 3.14.
Replication
DIF-2863: Improved Reliability of Clustering and Replication (DEDICATED_NON_FORK_JOIN now default)
The default thread pool used internally for cluster and replication operations has been changed to improve stability under load and provide better diagnostic logging if errors occur. This change requires no configuration, and most deployments will simply benefit from improved robustness.
Some customers may previously have been advised to set the undocumented "diffusion.hazelcast.thread_pool_mode" system property to DEDICATED_NON_FORK_JOIN to work around a clustering issue. This is now the default behaviour, so that property no longer needs to be set and can be removed from your configuration. (Setting it explicitly remains harmless and supported.).
DIF-4818: Quorum Recommended Warnings
Cluster configuration validation checks have now been added. Diffusion now performs the following checks when running in a cluster configuration:
- If the default Hazelcast cluster name ('dev') is in use, a log message recommends changing it to a more appropriate name.
- If topic replication is enabled without quorum, a log message recommends enabling quorum for topic replication.
DIF-4893: Upgrade to Hazelcast 5.7.0
The Hazelcast dependency was upgraded to 5.7.0 in this release.
Security
DIF-1356: Connection Credentials no Longer Passed in HTTP Headers or Query Parameters
Previously, connection and reconnection protocols used HTTP headers and URI query parameters to encode the connection request details. While these are still covered by TLS encryption, they could easily leak into diagnostic logging, middlebox logs, and so on.
To avoid these problems, the protocol has been changed to serialise the parameters as an initial binary frame. Older client versions will still be able to connect using the previous protocol, but new 6.13 (and beyond) clients will connect using the newer, more secure protocol.
DIF-5503: Use of the Java Security Manager is no Longer Supported
The use of the Java Security Manager is no longer supported.
The Java Security Manager is deprecated in Java 17 because it was considered fundamentally broken for its intended purpose — it couldn't reliably secure a JVM running untrusted code — and modern applications use other mechanisms instead.
DIF-5540: Dependency Updates
Third party dependency updates in this release:
Server
------
Hazelcast updated from 5.5.0 to 5.7.0.
Jackson (core, databind, annotations, datatype-jsr310, dataformat-cbor) updated from 2.18.2 to 2.21.7 (annotations 2.21).
SLF4J updated from 2.0.12 to 2.0.17.
Log4j updated from 2.25.1 to 2.25.5.
Prometheus client library migrated from the legacy simpleclient (0.16.0) to the current prometheus-metrics client (1.5.1).
LMAX Disruptor updated from 3.4.3 to 3.4.4.
MaxMind GeoIP2 updated from 4.2.1 to 4.4.0 (maxmind-db from 3.1.1 to 3.2.0).
HPPC (High Performance Primitive Collections) updated from 0.9.1 to 0.10.0.
Javassist updated from 3.29.0-GA to 3.31.0-GA.
Apache Tapestry Plastic updated from 5.8.6 to 5.9.1.
JCTools updated from 4.0.5 to 4.0.6.
PicoContainer updated from 2.15 to 2.15.2.
HdrHistogram 2.2.2 added as a new dependency.
JMS Adapter
-----------
org.json updated from 20250107 to 20260719.
Typesafe Config updated from 1.4.0 to 1.4.6.
Java SDK
--------
The slf4j-api dependency declared by the diffusion-api artifact updated from 1.7.5 to 2.0.17.
The slf4j-api dependency declared by the diffusion-client artifact updated from 2.0.6 to 2.0.17.
JavaScript SDK
--------------
core-js updated from 3.16.2 to 3.45.1.
loglevel updated from 1.7.1 to 1.9.2.
long updated from 4.0.0 to 5.3.2.
ws updated from 8.17.1 to 8.21.0.
ua-parser-js replaced with bowser 2.14.1 for browser detection.
@types/node updated from 16.7.1 to 24.5.2.
The @types/core-js, @types/loglevel, @types/long and @types/ua-parser-js packages are no longer required and have been removed.
Python SDK
----------
aiohttp minimum version raised to 3.14.3 for all supported Python versions (previously 3.6.2 on Python 3.11 and earlier, 3.9.0 on Python 3.12).
multidict 6.9.1 or later (below 8) added as a direct dependency.
cbor2 minimum version raised from 5.1.2 to 5.9.0 (still on the 5.x line).
pydantic now requires version 2.x (previously allowed either 1.x or 2.x).
New optional dependency groups have been added: telemetry (OpenTelemetry instrumentation, SDK and OTLP exporter, and psutil), telemetry-metrics (OpenTelemetry system metrics instrumentation), websockets (websockets 15.0 or later) and uvloop (uvloop on Linux and macOS).
Android SDK
-----------
streamsupport and streamsupport-cfuture removed (Java 8 API backporting no longer required on Android).
No third-party dependency changes in the .NET SDK, the Apple SDK (which has no third-party dependencies), or the C SDK.
Server
DIF-4802: Performance Improvements
Performance improvements in this release focus on persistence restore, server-side lock contention, and connection handling under load.
Persistence restore now uses batched loading with adaptive backpressure and tuned IO scheduling, reducing GC pauses and speeding up server startup after both cold and warm restarts. A related fix removes a snapshot corruption risk that could occur when restore tasks were interleaved.
Server-side lock contention has been reduced through refactoring of critical paths, including pooled buffer reuse for SSL/TLS connections. This also resolves a rare server lockup that could occur under heavy TLS renegotiation. Hot allocations in SSL handling and message framing have been reduced, and thread handoff between IO and processing paths has been improved.
A broader deadlock and lockup fix campaign audited lock ordering across the server core, added diagnostics and time-bounded waits, and resolved several high-risk deadlock cycles in the routing and subscription-handling paths.
A memory leak affecting long-lived client sessions with unflushed metrics has also been fixed.
Collectively, these improvements increase efficiency and scalability and reduce latency.
DIF-829: Diffusion on ARM
Support for Diffusion Server on ARM has been added in this release.
System Monitoring/Statistics
DIF-2886: Provide Multiplexer Metrics To Prometheus
Multiplexer metrics are now provided to Prometheus, giving insight into number of connected clients and pending events.
DIF-4846: Number of Days Remaining on Licence Metric
A new metric, diffusion_server_license_days_remaining, has been added for the number of days before licence expiry.
DIF-5374: Prometheus Upgrade to Version 1.5.1
Prometheus has been upgraded to version 1.5.1. See the upgrading guide for details on changes to metric names.
Topic Views
DIF-4833: Topic View Performance Improvements
The performance of topic views has been improved significantly in certain areas.
Topics
DIF-5306: Automatic Topic Removal Now Allows Removal of Branch to be Specified
When specifying an automatic topic removal policy for a topic, it is now possible to specify remove branch, which will cause not only the topic but also all of its descendants to be removed when the conditions are satisfied. This is simpler than having to specify a topic selector that indicates the topic and its descendants, and also can save memory at the server as identical topic specifications can be used for many different branch root topics.
DIF-5516: Time Series Subscriptions Only Provide Current Events
Previously, a session subscribing to a timeseries topic with a non-default TIME_SERIES_SUBSCRIPTION_RANGE could be sent a stale original event as well as the latest edit. This was inefficient and allowed sessions without the QUERY_OBSOLETE_TIME_SERIES_EVENTS permission to see obsolete events. From this release, only current events will be delivered to new subscribers. .
Fixes in 6.13.0
.NET Client
DIF-4847: Failure to Reconnect : System.ArgumentOutOfRangeException
The .NET client could fail to reconnect to the Diffusion server because the recovery buffer had become corrupted. This has now been resolved.
DIF-5002: Fatal Error From Server Ignored on Reconnection
The .NET client would attempt to reconnect to the Diffusion server even after the server has disconnected the client due to a fatal error, such as message loss on reconnection. This has now been resolved.
DIF-6104: TCP Connect Has No Timeout : Can Hang Indefinitely Instead of Failing Fast
.NET client's TCP connect had no timeout and could can hang indefinitely instead of failing fast. This issue is now resolved.
DIF-6333: Closing a Client Session Can Reset the Connection and Lose the Close Request, Leaving the Session on the Server
An issue was found where closing a .NET client session could leave it on the server until its reconnection timeout Expired. This issue has been solved.
DIF-6361: Client Sends Unmasked WebSocket Frames and Cannot Connect to a Server or Proxy That Requires Masking
An issue was found where the .NET client sent WebSocket frames to the server without masking them, as RFC 6455 requires. Its sessions could not connect to a server configured to require masked frames, or through a proxy that enforces masking. This issue has been solved.
Apple Client
DIF-5016: EXC_BAD_ACCESS on PTDiffusionSessionState in iOS 26+
Session.state has been made atomic in order to mitigate inconsistent state due to multi-threading.
DIF-6257: Apple Client Sessions Fail to Detect Inactivity and Busy-Loop the Main Queue After the First System Ping
An issue was found where the Apple client's connection activity monitor stopped working once a session has received its first system ping. This issue has now been resolved.
DIF-6261: A Slow or Blocked Operation on One Apple Client Session Stops All Other Sessions in the Same Application From Connecting or Receiving Data
An issue was found where a slow or blocked operation on an Apple SDK session could stop all other sessions in the same application from connecting or receiving data. This issue is now solved.
DIF-6379: Apple Client Can Crash When a Session Is Closed While the Server Is Closing Its Connection
An issue was detected where the Apple Client could crash when a session is closed while the server is closing its connection. This issue is now resolved.
C Client
DIF-6109: C Client Can Hang Indefinitely on a Slow WebSocket Handshake Instead of Failing Fast
C client could hang indefinitely on a slow WebSocket handshake instead of failing fast. This issue is now resolved.
DIF-6641: Session Factory Reconnection Timeout and No Reconnection Are Ignored
diffusion_session_factory_reconnection_timeout() and diffusion_session_factory_no_reconnection() set a value that was never read. Sessions created from a session factory always used the default reconnection timeout (60s), and still reconnected when reconnection had been disabled. This has now been resolved.
Federation
DIF-1641: Remote Server Status Reports "Connected" When it Repeatedly Fails
In previous releases, a secondary remote server could appear to be connected (either via the API or the Console), even though in reality it was (possibly repeatedly) failing to connect. This was because the API provided in RemoteServers.checkRemoteServer would attempt to retry a failed connection and then return the state. The state returned would initially be connected, but in some cases the connection could drop soon after (for example, if the primary queue was exhausted due to too many topics). .
To overcome this problem, it is now possible to query the remote server state without attempting a reconnect via a new getRemoteServerState method on the RemoteServers feature (available only in Java, .NET, and JavaScript at this release). The Diffusion Console now also provides the ability to both query the state and retry the connection.
It should also be noted that the default retry period for remote server secondary initiators is 1 second, and therefore you may still not see the failure, depending upon the exact point at which you make the query. It may therefore be advisable to use a longer retry interval until it has been established that the remote server connections are behaving as expected.
DIF-5126: Deadlock involving RemoteServerPrimaryLinkImpl$PrimaryConnection
In rare circumstances, a deadlock could occur in the server involving RemoteServerPrimaryLinkImpl$PrimaryConnection. This has now been resolved.
DIF-5767: PUSH-000173 : NullPointerException in RemoteServerTopicManagerImpl.remoteServerConnected
A PUSH-000173 error could be logged, indicating an error in SerialDispatcher. The cause was a NullPointerException from RemoteServerTopicManagerImpl.remoteServerConnected. This would most typically occur during the closure of remote servers. This problem has now been resolved.
DIF-5815: Server Logs a Spurious Error During Shutdown When an Outbound Connection Is Closed After Its Shared Thread Pool Has Stopped
Stopped a spurious PUSH-000173 error from being logged during shutdown when a server with active remote server connections was stopped. This only affects servers using remote servers.
DIF-5883: Reverse Connection Remote Server Secondary Acceptor Sessions Not Tidily Closed
In previous releases, under extreme session churn it was possible that remote server reverse connection secondary acceptor sessions that were replaced were not removed tidily representing a small memory leak. This problem has been resolved.
DIF-5921: Reverse Connection Remote Server: A Superseded Connected Session Leaves Orphan Reference Topics
When using remote server reverse connections (primary initiator / secondary acceptor), a rare timing condition during connection establishment - for example, during cluster repartitioning - could cause a topic view's reference topics to be created twice on the secondary server. The duplicate was not removed when the source topic was removed, leaving an orphaned reference topic. This has been fixed.
DIF-6091: Fan-out Secondary Logs a NullPointerException When Removing an Already-removed Topic
A fan-out secondary server could log a NullPointerException (PUSH-000468, "Topic stream threw exception") when it processed an unsubscription for a topic that was no longer present locally, for example, a duplicate or late removal notification, which is common during reconnection/recovery. The removal was otherwise a harmless no-op (the topic had already gone), so there was no data loss or functional impact, but the error was logged on every occurrence and could trigger false alarms in error monitoring. This has now been resolved.
DIF-6219: Spurious NullPointerException Logged on a Secondary Server When a Remote Server Link is Closed or Reconnects
A secondary server could log a spurious NullPointerException at ERROR when its connection to a primary (remote server) is closed or reconnects. The error is harmless - no session, topic, or data state is affected, but it was logged at ERROR under PUSH-000173. This has now been resolved.
DIF-6236: Remote Topic Views on a Secondary Server Can Fail to Track Topic Removals After a Remote Server Is Reconnected or Reconfigured
A timing window during a remote server reconnect or reconfiguration could leave a secondary unable to report its subscription state, so subscription-based automatic topic removal for that server's topics could be handled incorrectly, and setting up a remote topic view for it could occasionally fail with an error. This has been fixed. Only deployments using remote topic views together with subscription-based topic removal were affected.
DIF-6817: Secondary Initiator Remote Server Connections Can Stall Server Threads
While a server was connecting a secondary initiator remote server, it held a lock that other server operations also needed. Until the connection attempt ended, a checkRemoteServer request for that remote server could hold up a server inbound thread, and a subscription that raised a missing topic notification for it could hold up a multiplexer thread. Other sessions served by those threads were delayed as well. When the primary server was slow or unreachable, each delay could last up to the remote server's connection timeout, and it recurred on each retry. A checkRemoteServer request for a failed remote server also ran the whole connection attempt on the inbound thread.
If a remote server's URL led back to the server that defined it, the delay also stopped the server from rejecting the connection to itself. The remote server then retried every second indefinitely instead of reporting a failure.
The server now opens remote server connections without holding the lock, and never on the thread that handles a checkRemoteServer request. A remote server that connects to its own server now fails with a loopback error. A checkRemoteServer request made while the remote server is connecting reports the outcome of that connection attempt. A missing topic notification raised while it is connecting is sent once it connects.
Java Client
DIF-5439: Correct Closure of TLS Network Channels
Due to a bug in previous releases, closing a Java session could fail to shut down a secure WebSocket connection cleanly, leading to a small delay on the client side. The bug has been fixed in this release.
DIF-7059: Closing a Java Client Session While It Reconnects Throws IllegalStateException and Leaves the New Connection Open
Closing a Java client session while it was reconnecting could leave the connection made by the reconnection attempt open. If the session was closed, or the reconnection timeout expired, while a reconnection attempt was still being established, the attempt failed with an IllegalStateException thrown from ReconnectionAttempt.start(), and the new connection was neither used nor closed. A reconnection that completed at the same moment as a close could also restart connection activity monitoring on the closed session, causing a spurious idle connection warning to be logged later.
A close that happens during a reconnection attempt now closes the connection the attempt made, and the attempt ends without an exception. Activity monitoring is no longer restarted on a closed session.
DIF-7243: Client Request Can Hang Indefinitely If Sent As The Session Closes
A request made by a Java client session at the same moment the session closed could occasionally never complete, leaving the operation's CompletableFuture incomplete instead of failing it with SessionClosedException. Applications waiting on such a future without a timeout could hang. This could happen, for example, when a request was sent as the connection was lost with reconnection disabled, or as reconnection gave up. Such requests now always fail with SessionClosedException. Remote server connections, which use Java client sessions within the server, are also fixed.
JavaScript Client
DIF-2280: Multiple Calls to TopicStream.set With the Same Mutated Object Have No Effect After the First Call
Topic update streams would cache the value to calculate diffs, for the updates. For pure JSON objects, these values were wrongly stored by reference. When TopicStream.set was called multiple times with the same mutated object, no updates would be sent to the server. Now, deep copies are stored instead, leading to the expected behaviour.
DIF-2938: FetchRequest.fetch() - Non-errors thrown when given bad topic selectors
In the case that FetchRequest.fetch failed due to a server error, the promise was rejected with a non-specified type. This has been corrected and it will now be rejected with a RuntimeError.
DIF-4517: Passing SessionId Object into Functions that take SessionId or String Fails in the Modular Client
Functions such as ClientControl.close may take a SessionId or a string as parameter. When using the modular JS client, these functions sent the wrong data to the server when a SessionId was passed. This has been fixed and SessionId instances can be passed successfully.
DIF-4808: Calling setSessionProperties With a Map Does Not Correctly Set Session Properties
Calling ClientControl.setSessionProperties with a Map object instead of a plain JSON object incorrectly set the session properties. The key and value pairs were reversed. This has been fixed.
DIF-4815: Memory Overflow when Many Topic Selectors Used
The topic selector cache has now been size-limited to avoid memory overflow.
DIF-5029: JSON diff Breaks for Some Nested Objects
JSON diff was broken and threw an error when trying to compare nested objects containing empty arrays. This has been fixed.
DIF-6301: XHRTransport.close() only marks the transport aborted when a poll is in flight, so a send is retried against a closed transport
An issue was found where XHRTransport.close() only terminated the transport when a poll was in flight. This issue has now been resolved.
DIF-6455: JavaScript Client Errors Fail instanceof Checks and Have No getType() Method
An issue was found where the JavaScript client's errors, such as SessionError and IllegalArgumentError, had no getType() method. This issue has been solved.
DIF-6480: Client Logs bfcache WebSocket Teardown as ERROR 'Error from transport'
Following a change to caching semantics in Google Chrome, a Diffusion session would not automatically reconnect if a user navigated away and then back to a page. This has been addressed and will be treated as a standard transient disconnection, following configured reconnection policy.
Licensing
DIF-6617: A Licence Replacement That Fails Its Checks Stays in Use, and an Expired Replacement Shuts the Server Down at Midnight
An issue was found where a replacement licence that failed its checks stayed in use, so an expired replacement licence could stop the server at midnight. This issue has been solved.
Persistence
DIF-5233: Failure To Compact Topic Data In File Store
When file persistence is enabled, the server regularly compacts files. Due to a bug in previous releases, the compaction process could fail to fully write out an updated file, causing potential data loss. The bug has been fixed in this release.
DIF-5499: File Persistence Failed to Complete Restore on Encountering a Time Series Topic with a Null Event
Server could fail to start after a time series topic's persistence log contained a delta with no preceding value. During the compaction that runs on startup, such a log caused an unchecked exception that left the server permanently not ready, and a subsequent restart could silently discard the persisted data. The log is now treated like any other corrupt persistence file: the files are moved to the recovery directory and restore completes with a logged error. In addition, when a replicated topic is reused during cluster recovery or by a replica stream, its committed value is now written to the persistence log so that any later delta always has a valid base.
DIF-5774: PUSH-000875 : Persistence Restore Failure - NoSuchFileException
In previous releases, an unusual race condition during a persistence restore could have resulted in a PUSH-000875 message being logged indicating a cause of NoSuchFileException and the persistence files unnecessarily being moved into recovery. This has now been resolved.
DIF-7321: A Server With File Persistence Can Stop Responding When a Topic Update Fills the Persistence File
In very rare cases, a server with file persistence enabled could stop responding to topic updates until it was restarted. This could happen when a topic update filled the current persistence file while other updates to the same topic were in progress. This has been fixed.
Python Client
DIF-1062: Diffusion Core Shows Console Noise on Startup
Coverage instrumentation code had accidentally been left in the release version of diffusion-core, occasionally causing warnings to be emitted on stdout/stderr. This new version removes this instrumentation code.
DIF-2130: Exceptions when Deserialising Results are Swallowed and Result in Blocking
NoSuchConversationError was not being passed to the API, blocking the SDK. This issue has now been resolved.
DIF-226: (Python/.NET) : Incorrect Handling of Regular Expression Quotes in Topic Selector Expressions
Split-path pattern and full-path pattern topic selectors allow the use of regular expression quotes (\Q, \E). In previous releases of the Python and .NET clients, the quotes were handled incorrectly: any backslash () character between the quotes was interpreted as the end of the literal section.
This bug has been fixed in this release. Now everything between \Q and \E is correctly treated as literal characters. .
DIF-4357: Incorrect/Incomplete Permissions Documentation in Python Client API
Previously, several operations that required MODIFY_SESSION permission also required VIEW_SESSION permission. This has now been relaxed so that for operations that change a specified session's state or the state of a filtered selection of sessions, only MODIFY_SESSION permission is required.
In addition, VIEW_SESSION permission was also required for some messaging operations, but now SEND_TO_SESSION is sufficient.
DIF-4431: Python SDK Does Not Support Reconnection
Reconnection support was missing from the Python SDK. This issue has now been resolved.
DIF-4949: Only the First ValueStreamHandler Triggers the Subscribe Notification
Only the first ValueStreamHandler received the subscription notifications. This issue has been resolved.
DIF-5134: CBOR2 5.8.0 or Later Breaks Client
CBOR2>=5.8.0 breaks the client by consuming the entire buffer passed into it: https://github.com/agronholm/cbor2/issues/272 .
There are various partial workarounds but the author has confirmed this is a bug. Until this is rectified, or we migrate from using cbor2 for decoding we will continue to restrict cbor2 to <5.8.0.
DIF-6500: Client Sessions Using the WebSocket Transport Connect Through the HTTP Proxy Named by the Environment or System Settings
Python sessions using the optional websockets transport (websockets 15 or later) connected through any HTTP proxy named by the proxy environment variables or the macOS or Windows system proxy settings, while the default aiohttp transport always connected directly.
Both transports now connect directly to the server, as the other Diffusion client libraries do by default.
An application that relied on such a proxy with the websockets transport now connects directly; the Python client has no setting to route a session through a proxy.
DIF-7124: Client Sessions Can Keep Reconnecting Past Their Reconnection Timeout on Python 3.10 and 3.11
An issue was found where, on Python 3.10 and 3.11, a Python client session could keep reconnecting after its reconnection timeout had expired. This issue has been solved, and the session now closes with the CLOSED_FAILED state when the timeout expires.
The reconnection timeout now runs from the moment the connection is lost, as in the Java client, so a reconnection strategy that waits before reconnecting no longer extends it.
DIF-7312: Client Closes Idle Sessions After ~15 s ("No PONG received after 5.0 seconds")
Since 6.12.2, a Python session that received no messages for about 15 seconds could be closed, logging "No PONG received after 5.0 seconds". A quiet but healthy session was therefore treated as lost and had to reconnect, or closed if reconnection was disabled. This has now been corrected.
DIF-7419: Client Sessions Can Report a Stale Old Value, or Updates Under the Wrong Topic Path, After Failing Over to Another Server
An issue was found where, after a Python client session failed over to another server, a topic update could report a value from the previous server as its old value, or be delivered under the path of a different topic. This issue has been resolved.
Replication
DIF-4637: Potential NullPointerException in ClusteringMessagingServices.sendToFilter
In extremely rare circumstances, a NullPointerException could occur in a server in ClusteringMessagingServices.sendToFilter. This has now been resolved.
DIF-4812: Split-brain Data Loss in Absence of Quorum
Quorum should be configured to prevent potential data loss after recovering from a network partition (also known as "split brain").
In previous releases, if quorum was not configured, servers could fail to handle the data loss when reforming a cluster. Both consistency and availability were affected. Each server could end up with a different topic tree, and a server could reject new updates. From this release, servers will reform a cluster safely and will log a warning that data may have been lost.
DIF-4822: Topic Updates are Unnecessarily Replicated
Due to a bug in previous releases, topic updates were unnecessarily replicated across the cluster. This had no effect on data integrity because the redundant updates were safely discarded, but it did reduce performance. The bug has been fixed in this release.
DIF-5524: Server Logs PUSH-000956 Error Messages When Joining A Cluster
Due to a bug in previous releases, when a server joined a cluster it could log error messages indicating updates have been received for unknown topics. These spurious updates were unnecessary and safely discarded. The bug has been fixed in this release.
DIF-5566: AssertionError Publishing Value for Removed Topic with Replication
Due to a bug in previous releases, a server started with Java assertions enabled could trigger AssertionErrors such as "topic X is removed - lock not acquired?", leading to error messages in the log and missing publication of updates that occurred before a topic was removed. The bug has been fixed in this release.
DIF-5726: Replicated Time Series Data Incorrectly Recovered Following Cluster Topology Change
Due to a bug in previous releases, time series topic data could be corrupted if cluster membership changed while topics were being updated. The bug has been fixed in this release.
DIF-5769: StackOverflowError Involving RoutingDispatcher.routeToPartitionOwner
In previous releases, a StackOverflowError could occur in the server involving RoutingDispatcher.routeToPartitionOwner routing to itself due to a rare race condition. This has been resolved at this release.
DIF-5796: Session Lock Requests Can Hang Indefinitely After a Cluster Partition or Server Failure
In previous releases, following a network partition between cluster members or the abrupt loss of a cluster member, there was the possibility that a session lock might not be released and could be blocked until the affected cluster member was restarted. This problem has now been resolved.
DIF-5850: Spurious Error Logged During Shutdown of a Clustered Server - PUSH-000412
In previous releases, a spurious PUSH-000412 error could be logged when closing a clustered server. This has now been resolved.
DIF-5909: Unnecessary Recreation Of Topics During Recovery
Due to a bug in previous releases, replicated topics could be unnecessarily be removed and recreated when a cluster resized. Unnecessary PUSH-000943 error messages could be logged. The bug has been fixed in this release.
DIF-6024: Removed Topics Can Reappear After Cluster Failover or Rebalance
Due to a bug in previous releases, replicated topic removals could fail to be transactionally recorded in the recovery log. If the cluster topology changed, removed topics could be recreated. The bug has been fixed in this release.
DIF-6081: Events Routed Incorrectly if More Than One Session Event Listener is Registered at the Same Cluster Member
Previously, if more than one session event listener was registered at the same server in a cluster, session events would only be routed to one of the listeners. This problem has now been resolved.
DIF-6099: Replicated Topic State May Be Left Inconsistent After Cluster Repartitioning
In a cluster using topic replication, a very rare timing window during repartitioning (for example, when a server restarts, fails over, or joins or leaves the cluster) could cause a server to continue treating itself as the owner of a partition that had just been reassigned to another cluster member. A replica or downstream fan-out server that connected during this window could then be sent stale or divergent replicated topic state for the affected partition, including replicated configuration. The window was transient, and no error was reported. This has been fixed so that the superseded recovery notification is no longer sent and partition ownership remains consistent across the cluster.
DIF-6134: Restarting a Clustered Server Logs Spurious Replication Errors For Time Series Topics
Previously, when a server in a cluster restarted and re-synchronised a replicated time series topic from a peer server, it could incorrectly log a replication error even though no data had actually been lost or corrupted. This has been fixed; the spurious error is no longer logged in this situation.
DIF-6146: Persistent Topics Can Fail To Be Correctly Replicated When A Cluster Starts
Due to a bug in previous releases, topics recovered from persistent file stores could fail to be replicated correctly when starting a cluster. Topics could be restored to some servers in the cluster, but not others. A server that failed to restore a topic would log a PUSH-00943 error message. The bug has been fixed in this release.
DIF-6163: PUSH-000943 Errors Can Be Logged Incorrectly
Due to a bug in previous releases, servers could incorrectly log PUSH-000943 "Recovered from inconsistent topic replication data" error messages. The bug has been fixed in this release.
DIF-6210: Unknown Source Topic Error During Replication
Due to a bug in previous releases, topic replication could fail in rare circumstances with an assertion error "Unknown source topic", leaving a server in a corrupt state. The bug has been fixed in this release.
DIF-6213: Session Replication Logs a Spurious 'unable to store session' Error (PUSH-000600) During Server Shutdown
Stopping a clustered server could occasionally log a spurious PUSH-000600 error. This was harmless shutdown noise — no session data was lost — but it was reported at ERROR. This has been fixed.
DIF-6433: Removal Of A Non-Replicated Topic Causes PUSH-000897 Warning
Due to a bug in previous releases, removal of a non-replicated topic could cause a PUSH-000897 ("No topic entry found in persistence file") warning to be logged. The bug has been fixed in this release.
Security
DIF-5972: Trailing Null Bytes Ignored When Validating Passwords
Previously, checking a password could incorrectly succeed if the value being checked contained the correct password followed by additional non-printable characters appended to the end. This is something that could not occur with a normally typed password, but could arise through programmatic or scripted use. This has been fixed so that password verification now always requires an exact match. The fix applies automatically to any password set or changed from this release onwards; to ensure it applies to existing accounts, their passwords should be changed.
Server
DIF-236: JavaScript Client Can Read all MBeans in the JVM
Previously, a deprecated service allowed authorised Diffusion administrators to view server JMX information. This service has now been removed.
DIF-4784: Time Series Topics Are Not Replicated to All Servers Consistently
In previous versions a race condition could occur when using addAndSet in quick succession with time series topics. This could result in inconsistent updates across the cluster. This could also affect Gateway clients which use addAndSet internally. This has been fixed at this release.
DIF-4921: Sessions Open Metric Can Go Negative
In previous releases a failed connection attempt could cause the diffusion_sessions_open metric to be decremented without first having been incremented, causing an underflow. This has been fixed at this release.
DIF-4971: Server Runs Out of Native Memory when Topic Persistence is Enabled
In previous releases, if topic persistence was enabled, the server could reserve excessive native memory when persisting topic updates with large payloads. This was due to sub-optimal caching of native byte buffers and could lead to out of memory errors. The problem has been fixed in this release.
DIF-4976: Possible Infinite Loop Resulting from a Fetch Request
In extremely rare circumstances, a fetch request could trigger an infinite loop in a server thread. Diagnostics would show the server consuming excessive CPU in the EnumConverter.longToSet method. This issue has now been resolved.
DIF-5148: Race Between addAndSet of a Non-replicated Topic with a Constraint and Concurrent Updates
Due to a bug in previous releases, if two sessions concurrently updated an existing non-replicated topic, one setting value V1 using an add-and-set operation and the other setting value V2 using a simple update operation, the processing could be interleaved such that the constraint checks for V1 were performed, the topic value was set to V2, then the topic value was set to V1. The bug has been fixed in this release.
DIF-5716: AssertionError: "Once added to ClientSessions a session must always have a session token"
In previous releases, a session which failed authentication could trigger an assertion error being logged with the description "Once added to ClientSessions a session must always have a session token". This has been fixed in this release.
DIF-5779: PUSH-000335 Reports IllegalArgumentException from Protocol12HTTPMessageParser
In previous releases, a PUSH-000335 error could be logged if a client connected with an invalid protocol. This was due to an IllegalArgumentException from Protocol12HTTPMessageParser (or Protocol6HTTPMessageParser for very old client connections). This has now been resolved so that such a client is tidily rejected rather than causing this error.
DIF-5806: JMX MBean Registration Fails with PUSH-000195 When an MBean is Already Registered for the Same Object Name
JMX MBeans are now replaced rather than failing to register when an entry already exists for the same object name. This could only really occur when restarting a server with the same name in the same VM. PUSH-000195 error will no longer be logged in this situation, but a warning of PUSH-000990 will be logged instead.
DIF-5858: Failures in Server Shutdown Prevent Complete Close
Previously, when a server was shutting down, an interruption that caused the failure of the closure of a single component could abort the whole tidy shutdown and prevent a full and tidy close. This has now been resolved so that if any component fails to close tidily, a warning will be logged, and the shutdown will proceed.
DIF-5868: Delayed Topic Views Can Encounter InvalidDataException
In previous versions, when using delayed topic views, a failure to apply a single delayed delta could cause others to fail with InvalidDataException. This has been fixed at this release.
DIF-5988: Potential Deadlock in OutboundSessions During Server Closedown When Using Remote Servers
In previous releases, there was a very rare possibility of a deadlock occurring between the OutboundSessions class and a remote server class during server shutdown. This problem has been resolved in this release.
DIF-6143: Server Can Fail To Handle A Blocked Network Connection
Due to a bug in previous releases, a server could failed to handle a session with a network connection that stopped accepting data. The server would log repeated PUSH-000773 warnings, and processing of other sessions could be stalled. The bug has been fixed in this release.
DIF-6506: A Session Can Be Disconnected Again Immediately After It Reconnects
Previously, in rare circumstances, after a client reconnected, the server could disconnect the session again straight away. The client would normally recover by reconnecting a second time, so the main effects were an extra disconnection and reconnection, and the extra events and delay that go with them. This problem has now been resolved.
DIF-6775: Unnecessary Session Closures Due To Lost Timer Cancellations
Due to a race condition bug in previous releases, cancellation of reconnection and session expiry time-outs could fail leading to unnecessary session closures The bug has been fixed in this release.
Sessions
DIF-6036: Session Event Listener Can Deliver Duplicate Open Events Under Contention
Fixed an issue where a session event listener could occasionally receive a duplicate "session open" event for a session that connected while the listener was being registered.
System Monitoring/Statistics
DIF-5691: Time Series Topic Persistence Bytes Metric Is Incorrect
Fixed an issue where the persistence_bytes metric for time series topics could report inaccurate values after the topic's persisted data was compacted, including undercounting the true persisted size or dropping to a negative number. The metric now correctly reflects the total size of the events currently retained for the topic.
Topic Views
DIF-5689: Incorrect Synchronisation Could Cause Topic View Data Errors
A synchronisation problem has been fixed that could potentially cause topic view data processing errors.
DIF-5790: Missing Delayed Updates When A Topic Is Removed And Re-added
Due to a bug in previous releases, removal and recreation of a source topic could result in missing updates to delayed reference topics. The bug has been fixed in this release.
DIF-5793: AssertionError : PatchStack.assertEmpty in Topic Views Processing
In previous releases, a java.lang.AssertionError could be reported at com.pushtechnology.diffusion.topics.views.PathStack.assertEmpty when processing a topic view. This error could occur due to some underlying error which it masked. This has been resolved such that any underlying error will be reported correctly.
DIF-5812: Topic View Subscribers Can Silently Miss Reference Topics When a Topic Is Removed Concurrently During an Update
Topic view subscribers could silently miss reference topics after a concurrent removal.
When a topic was removed at the same time a topic view was applying an update to it, the view could fail to re-create the corresponding reference topic. Subscribers to the topic view would not receive the topic, with no error reported. This was most likely to occur under contention in fan-in views and when topics were being updated and removed in rapid succession (for example, during remote-server updates).
The topic view now treats a concurrently-removed topic as absent and re-adds it through the normal add path, so subscribers reliably receive the reference topic.
DIF-5887: Time Series Reference Topics Can Be Corrupted When the Source is Another Time Series Reference Topic
In previous versions a time-series reference topic derived from another time-series reference topic could experience data corruption when applying updates. This has been fixed at this release.
DIF-5964: Topic View Calculations Could Use Incorrect Source Value
Due to a race-condition bug in previous releases, a topic view could process source updates out of order. The bug has been fixed in this release.
DIF-6001: Server Becomes Unresponsive When a Remote Topic View Is Added
Under certain timing conditions, adding or inserting a remote topic view could cause the server to stop responding to topic management operations altogether, not just operations related to the view being added, but adding, removing, or updating any topic on the server. The server would not recover on its own; a restart would be required.
DIF-6019: Topic View Reference Topics Can Be Permanently Missing After a Source Value Change Under Load
Previously, when a topic view derived a reference topic's path from a value in the source topic (a value/scalar directive such as <scalar(...)>), changing that source value could leave the new reference topic never created. This only occurred under heavy concurrent load and was therefore intermittent. This has now been resolved.
DIF-6650: "AssertionError: Unknown source topic" When Creating Topic View
Due to a bug in previous releases, it was possible that a topic view could fail to create a topic from a replicated source topic. If this happened, the server would log a PUSH-00335 message "AssertionError: Unknown source topic...". The bug has been fixed in this release.
Topics
DIF-5879: INT64 Topic Values Corrupted Between Integer.MAX_VALUE and Integer.MAX_VALUE*2
Due to an int cast bug, INT64 topic values were corrupted between Integer.MAX_VALUE and Integer.MAX_VALUE*2. This has been fixed in this release.
DIF-5889: JSON Topic Validation Does Not Detect Invalid UTF-8 in String Values
Fixed an issue where JSON topic value validation did not detect invalid UTF-8 text within string values, including a lone UTF-16 surrogate code point. Such a value could be accepted by the server without error, but later fail unexpectedly when converted back to JSON text. Validation (enabled via the VALIDATE_VALUES topic property) now correctly rejects these values at update time with a clear error message.
Web Server/HTTP
DIF-6294: HTTP Polling Responses Can Be Sent Without the Access-Control-Allow-Origin of the Request They Answer, so a Browser Discards Them
An issue has been found where HTTP polling responses could be sent without the Access-Control-Allow-Origin of the request, causing the browser to discard them. This issue has now been fixed.
Known Issues
Federation
DIF-6206: Fanout Limitations and Conflicts With Other Topics
The fanout federation feature has some limitations which do not apply to the later remote server mechanism for federation. Care must be taken with the possible overlap of fanned-out topics and other types of topics (application-created, replicated, or reference topics) as the outcomes of clashes with such topics is indeterminate and may lead to unexpected results. Users of fanout must ensure that topics created by fanout do not collide with other topics at the same paths.
Users are strongly advised to use remote servers instead of the legacy fanout mechanism which has been deprecated at release 6.11 and is targeted for removal at release 6.14.
Topic Views
DIF-166: Reference Topics Retained by 'preserve topics' are not Persisted Across Server Instances or Clusters
A new 'preserve topics' clause was introduced to topic views in release 6.6. .
This clause means that reference topics created by a view (that have a path dependent upon the source topic value) are retained until the source topic is removed or the topic view is removed. .
Though this is true in the context of a single server instance, it is not the case if the server is restarted as all such topics created during the previous server instance will be lost. It is also not the case if a new server enters a cluster as the new server will only have reference topics generated from the point in time where it joined the cluster and will not reflect reference topics previously created within other cluster peers.
This issue occurs because reference topics are not persisted, either to file or across the cluster.
DIF-167: Restrictions on Mapping Single Value Topics to Time Series Reference Topics
The ability to specify a target type in a topic view was introduced in release 6.7.0.
When using this feature to map a single value topic to a time series topic there are the following restrictions.
1) The retained events in the target topic are not replicated across the cluster (as reference topics are not replicated). This means that a new server joining the cluster will not have the same number of retained events as other cluster members. For this reason mapping single value to time series topics should not be used in a clustered environment.
2) Retained events in the target topic are not persisted therefore when a server is restarted the target time series will initially start with a single event and will only grow as the source topic is updated.
The ability to map single-value topics to time series topics is deprecated at release 6.11 and an error message will be logged if used. If used in a single server a warning message will be logged.
DIF-2482: The Memory Overhead of Remote Topics is not Accounted for in Metrics and Fetched Topic Sizes
Remote Topic Views maintain local caches of the values of the topics from the primary servers, however, this memory overhead is not accounted for in the metrics relating to topic sizes and memory. This means that when using remote topic views, there is an 'invisible' memory overhead which amounts to the size of each topic selected by the remote topic views from the primary server. .
Furthermore, from release 6.11 it is also possible to 'fetch' the size of topics. For reference topics that are mapped from remote topics, a similar problem to the above occurs. A reference topic that is directly mapped from a remote topic will report its size as zero because under normal circumstances the size of such a reference topic is accounted for in the source topic. Similarly, a reference topic that is indirectly mapped from a remote topic will report its value size but will not consider the additional size of the source topic. The reference topic cannot simply add the size of the source topic as many reference topics can be mapped from the same remote topic and that would result in over accounting for the sizes.
Both of the above issues will be resolved in a future release.