Just a second...

Upgrading from version 6.12 to version 6.13

Consider the following information when upgrading from Diffusion™ version 6.12 to version 6.13.

Significant changes

The connection protocol has changed so that a client's principal and credentials are no longer passed as HTTP headers or URI query parameters. Instead, they are sent to the server within a binary frame as part of the connection protocol. This avoids these details leaking into diagnostic logging, middlebox logs, and so on. This change is backwards compatible: clients from earlier releases can still connect to a 6.13 server using the previous protocol, but 6.13 (and later) clients always use the new protocol.

Several previously deprecated API items have been removed at this release. See API removals below.

A number of third-party dependencies have been updated at this release, including an upgrade of Hazelcast to version 5.7. Of particular note for Python client applications: the minimum supported version of cbor2 has been raised to 5.9.0, and pydantic version 2.x is now required (version 1.x is no longer supported). See the release notes for the full list of dependency updates.

Python sessions now reconnect by default, as sessions in the other SDKs do. Previously, a Python session only reconnected if a reconnection strategy was set, and otherwise closed when its connection was lost. To keep that behaviour, call no_reconnection() on the session factory. A Python session now enters the RECOVERING_RECONNECT state as soon as its connection is lost, before the reconnection strategy is called, so session listeners see that state change earlier than before. A failed initial connection is no longer retried by the reconnection strategy; use the initial retry strategy to retry it. The Python session factory's connection_timeout setting, which previously had no effect, now limits the time taken to establish the initial connection (60 seconds by default).

Upgrading your applications

Server-side components

Recompile all Java™ application components that are deployed to the Diffusion server, such as authorization handlers, against the new version diffusion.jar file. This file is located in the lib directory of your new Diffusion server installation.

Some features that your Java application components might use have been removed or deprecated. Pay attention to new deprecation warnings and compilation failures that occur during recompilation and review the API changes information in the following section to see if these changes affect your applications.

Clients

You can choose not to recompile your client applications and continue to use client libraries from a previous release. If you choose to use client libraries from a previous release, ensure that the libraries are compatible with the new server. For more information, see Interoperability.

You can choose to upgrade your client applications to use the new client libraries. To do this, recompile the client applications against the client libraries located in the clients directory of your new Diffusion server installation and repackage your client application with the new library.

Your client applications may use features that have been removed or deprecated. Review the API changes information in the following section to see if these changes affect your applications.

API deprecations

There are no new API deprecations at this release.

API removals

The following previously deprecated items have now been removed. If your application used any of these items they will need to be amended to use the alternatives. See the upgrade notes from the release at which they were deprecated for details of the alternatives.

Java Client

The deprecated Builder returned by Diffusion.newRemoteServerBuilder has been removed from the RemoteServers feature - deprecated at 6.9 in favour of SecondaryInitiatorBuilder.

The deprecated createUpdateStream methods have been removed from the TopicUpdate feature - deprecated at 6.9 in favour of UpdateStreamBuilder.

.NET Client

The equivalent deprecated remote server builder has been removed - deprecated at 6.9 in favour of the secondary initiator builder.

The equivalent deprecated update stream creation methods have been removed - deprecated at 6.9 in favour of the update stream builder.

JavaScript Client

The equivalent deprecated remote server builder has been removed - deprecated at 6.9 in favour of the secondary initiator builder.

The equivalent deprecated update stream creation methods have been removed - deprecated at 6.9 in favour of the update stream builder.

Apple Client

The equivalent deprecated remote server builder has been removed - deprecated at 6.9 in favour of the secondary initiator builder.

The equivalent deprecated update stream creation methods have been removed - deprecated at 6.9 in favour of the update stream builder.

Support for AppleTV has been removed from the Apple SDK frameworks. No customer has used the Apple SDK with the intent of deploying it to an AppleTV device.

C Client

The equivalent deprecated remote server builder has been removed - deprecated at 6.9 in favour of the secondary initiator builder.

Configuration

Redundant entries have been removed from the Statistics.xsd and Connectors.xsd files.

Prometheus metric naming conventions

In version 6.13, Diffusion Prometheus exports use the OpenMetrics 1.5.x text format by default. The exported metric names and types are now aligned with OpenMetrics conventions.

Key changes include:

  • Counter metrics no longer include the _total suffix. The counter type is declared in the # TYPE line instead.
  • Info metrics may no longer include the _info suffix in some cases. When this happens, the metric is exported as a gauge type.
  • Some metric names have been simplified for consistency with OpenMetrics conventions.

You should update any dashboards, alerting rules, or monitoring rules that depend on the legacy names to use the new OpenMetrics names.

For full details on metric naming see Metrics

Upgrading your server installation

To upgrade your Diffusion server installation, complete the following steps:
  1. Use the graphical or headless installer to install the new version of Diffusion alongside your existing installation.

    For more information, see Installing the Diffusion server.

  2. Replace the default licence in the new server's etc directory with your production licence. If your licence needs updating contact DiffusionData for an updated file.
  3. Copy all of the files from the persistence directory of your previous installation to the persistence directory of your new installation.
  4. Configuration files from the etc directory of your previous installation can be copied to the etc directory of your new installation. There are no configuration file format changes at this release, other than the removal of redundant entries from Statistics.xsd and Connectors.xsd described in API removals above.

Upgrading in a cluster

To upgrade a Diffusion server cluster, complete the following steps:
  1. Follow the steps above to upgrade your Diffusion servers. However, only copy the persistence files to one of the servers in the cluster.
  2. Ensure that the server you copied the persistence files to is started first. This server will restore the persisted state.
  3. Start the other upgraded servers in the cluster one-by-one allowing them to restore persisted state from the first server.