Skip to content

Releases: aeron-io/aeron

1.49.1

02 Nov 00:00
10f81c9

Choose a tag to compare

  • [Cluster] Optimize redirect handling in AeronCluster: reuse existing publication if available and use async API
    to connect to the leader otherwise.
  • [Cluster] Protect against NPE during follower catchup if recording is stopped, because the leader transitions to a
    follower and stops sending log.
  • [Driver/C] Perform sender address re-resolution checks on a fixed schedule rather than awaiting next control
    polling cycle, i.e. align behavior with the Sender#doWork implementation.
  • [Driver/Java] Perform full name and address matching in driver name resolver. Add tests to ensure partial matches
    are not allowed. Remove allocations when matching neighbors by address.
  • [Driver/C] Fix segfault when invalid name resolver configuration is provided. Cleanup allocated resources to avoid
    leaking memory.
  • [Driver/C] Use aeron_interface_parse_and_resolve to resolve aeron.driver.resolver.interface parameter, i.e.
    skip the aeron_find_interface checks. This aligns the implementation with the DriverNameResolver in Java. Fix
    filtering out of self entries, i.e. use full name matching instead of a prefix match.

1.48.7

01 Nov 23:49
0e4de5a

Choose a tag to compare

  • [Driver/C] Fix UNTETHERED_SUBSCRIPTION_STATE_CHANGE logging, i.e. log previous state and add missing logging to
    aeron_publication_image.
  • [Driver/C] Ensure rcv-naks-sent counter is cleaned up if publication image creation fails.
  • [Driver/C] Prevent sending empty NAK message upon initial connection to the publisher.
  • [Driver/C] Ignore NAKs with zero length and treat NAKs with negative length as invalid packets.
  • [Driver/Java] Ignore NAKs with zero length and treat NAKs with negative length as invalid packets.
  • [Driver/Java] Fix connectivity status handling in NetworkPublication, i.e. do not transition to NOT_CONNECTED
    when the last remote subscriber disconnects if there is at least one spy and spies simulate connection (ssc=true).
  • [Driver/C] Fix connectivity status handling in aeron_network_publication, i.e. do not transition to
    NOT_CONNECTED when the last remote subscriber disconnects if there is at least one spy and spies simulate connection
    (ssc=true).
  • [Driver/Java] Handle connection status updates for untethered IPC subscribers.
  • [Driver/C] Handle connection status updates for untethered IPC subscribers.
  • [Agent/C] Remove extraneous ] suffix from CMD_IN_REMOVE_PUBLICATION, CMD_IN_REMOVE_SUBSCRIPTION and
    CMD_IN_REMOVE_COUNTER log events.
  • [Driver/C] Perform sender address re-resolution checks on a fixed schedule rather than awaiting next control
    polling cycle, i.e. align behavior with the Sender#doWork implementation.
  • [Driver/Java] Perform full name and address matching in driver name resolver. Add tests to ensure partial matches
    are not allowed. Remove allocations when matching neighbors by address.
  • [Driver/C] Fix segfault when invalid name resolver configuration is provided. Cleanup allocated resources to avoid
    leaking memory.
  • [Driver/C] Use aeron_interface_parse_and_resolve to resolve aeron.driver.resolver.interface parameter, i.e.
    skip the aeron_find_interface checks. This aligns the implementation with the DriverNameResolver in Java. Fix
    filtering out of self entries, i.e. use full name matching instead of a prefix match.

1.49.0

03 Oct 11:57
4b09b14

Choose a tag to compare

New & Noteworthy

  • [Driver] Support for IPC media was added to response channels. (#1761)

    The feature works exactly the same as for UDP media but does not require control endpoint to be specified.

    For an example see
    ResponseChannelsTest#shouldConnectResponsePublicationUsingImageAndIpc.

  • [Driver] Add support for response-correlation-id=prototype to allow pre-creating response publications to
    reserve and hold onto a local port. (#1863)

    For usage example see ResponseChannelsTest.

  • [Driver] Add API to create counters asynchronously.

    Counters can now be created asynchronously using Aeron.asyncAddCounter and Aeron.asyncAddStaticCounter methods.
    Created counter is returned by the Aeron.getCounter method. There is also Aeron.asyncRemoveCounter to asynchronously
    remove counter by registrationId.

    For usage example see
    CounterTest#shouldAddCounterAsynchronously,
    CounterTest#shouldAddCounterAsynchronouslyUsingLabelAndTypeId
    and
    CounterTest#shouldAddStaticCounterAsynchronously.

  • [Archive] Named Archive clients.

    Client name can be specified using AeronArchive.Context.clientName(java.lang.String) API or
    aeron.archive.client.name system property. Once specified the name will be sent to the Archive with connect request
    along with additional information such as client version. Archive will add a new control-session counter
    (typeId=113) for each connected client:

    control-session: name=test client 5 version=1.49.0-SNAPSHOT commit=e79ebfa4ff sourceIdentity=127.0.0.1:51360 sessionId=1083930759 - archiveId=519
  • [Cluster] Named Cluster clients.

    Client name can be specified using AeronCluster.Context.clientName(java.lang.String) API or
    aeron.cluster.client.name system property. Once specified the name will be sent to the Cluster with connect request
    along with additional information such as client version. Cluster will add a new cluster-session counter
    (typeId=241) for each connected client:

    cluster-session: name=test client version=1.49.0-SNAPSHOT commit=4ac30af55a sourceIdentity=127.0.0.1:54444 sessionId=325223904 - clusterId=0
  • [Cluster] Default Authorisation Service

    Updated the default AuthorisationService to allow heartbeat and standby-snapshot requests, which are required for Aeron Cluster Standby.

  • [Breaking] org.agrona.concurrent.ShutdownSignalBarrier changes in Agrona 2.3.0.
    Please read the corresponding release notes on how to upgrade.

  • [Breaking] ClusteredServiceContainer.Context.shutdownSignalBarrier, ConsensusModule.Context.shutdownSignalBarrier
    and ClusterBackup.Context.shutdownSignalBarrier methods were removed and replaced with an explicit ShutdownSignalBarrier.

    For example this is how ConsensusModule#main changed:

    • Before:

      public static void main(final String[] args)
      {
          loadPropertiesFiles(args);
      
          try (ConsensusModule consensusModule = launch())
          {
              consensusModule.context().shutdownSignalBarrier().await();
              System.out.println("Shutdown ConsensusModule...");
          }
      }
    • After:

      public static void main(final String[] args)
      {
          loadPropertiesFiles(args);
      
          try (ShutdownSignalBarrier barrier = new ShutdownSignalBarrier();
              ConsensusModule ignored = launch(new Context().terminationHook(barrier::signalAll)))
          {
              barrier.await();
              System.out.println("Shutdown ConsensusModule...");
          }
      }
  • [Breaking] Aeron jars no longer provide OSGI metadata as bnd plugin was removed, because it breaks
    compatibility with Gradle 9.1 and causes self-dependency via baseline task.

Changelog

  • [Agent] Make agent classes accessible outside of io.aeron.agent package.
  • [Agent] Fix CMD_IN_MAX_RECORDED_POSITION logging.
  • [Agent] Add CLUSTER_SESSION_STATE_CHANGE log event.
  • [Agent] Add APPEND_SESSION_OPEN log event.
  • [Agent] Remove ADD_PASSIVE_MEMBER log event.
  • [Agent/C] Remove extraneous ] suffix from log messages CMD_IN_REMOVE_PUBLICATION, CMD_IN_REMOVE_SUBSCRIPTION and CMD_IN_REMOVE_COUNTER.
  • [Agent/C] Fix UNTETHERED_SUBSCRIPTION_STATE_CHANGE logging, i.e. log previous state and add missing logging to aeron_publication_image.
  • [Archive] Allow for the archive to update the channel for a specific recording.
  • [Archive] Return an error code when replaying and stopping an empty recording. (#1854)
  • [Archive] Capture abort reason in RecordingSession.
  • [Archive] Add additional "length" that will replay the data available, but not follow a live recording. Add more
    appropriately named constants and update javadoc.
  • [Archive] Ensure AeronArchive.State.CLOSED is used when AeronArchive instance is closed.
  • [Archive/C] Close uri string builders upon error when concluding aeron_archive_context.
  • [Archive] Adjust aliases on Archive streams for easier debugging.
  • [Archive/Driver/Cluster] Lower cycle threshold for core components to 1ms by default.
  • [Archive] Add ALLOW_ALL and DENY_ALL authorisation supplier options for the Archive.
  • [Archive/C] Add aeron_archive_wrapper's own sources to the target_include_directories.
  • [Archive] Do not log a warning when control response publication is disconnected or a control request image is going
    away, i.e. treat those events as normal client termination.
  • [Archive] Copy response-endpoint, ttl and stream-id URI parameters from the original channel definition when creating recordings and replays.
  • [Client] Add Sequencer counter types.
  • [Client] Read mtu from the log buffer metadata only once.
  • [Client] Provide additional context when log buffer cannot be mapped.
  • [Client] Add InternalApi annotation.
  • [Client/C++ Wrapper] Add missing assignment operator to match the copy constructor.
  • [Client/C] Send CLIENT_CLOSE command to media driver when aeron is closing. (#1837)
  • [Client/C] Fix client build to properly resolve -DHAVE_BSDSTDLIB_H -DHAVE_ARC4RANDOM.
  • [Cluster] Update the default AuthorisationService to allow requests necessary for Cluster Standby. (#1870)
  • [Cluster] Handle exception during snapshot, i.e. continue running if exception is non-terminal.
  • [Cluster] Remove more references to membership changes/passive members/dynamic join.
  • [Cluster] Re-create ingress publication upon redirect from a follower while connecting to the Cluster.
  • [Cluster] Ensures proper handling when ingress publication is closed but not null. (#1861)
  • [Cluster] Add more context for transitioning from FOLLOWER_LOG_REPLAY state.
  • [Cluster] Add more context to unexpected commit position events.
  • [Cluster] Add context to unexpected commit position from new leader event.
  • [Cluster] Service snapshot time now includes time to serialize sessions and connect to the Archive.
  • [Cluster] Only log APPEND_SESSION_CLOSE upon successful append to the log + reduce slow cycle frequency caused by
    failed append attempts.
  • [Cluster] Within the ClusterToolOperator bind the adapter before the publication and await for the subscription to be
    bound to reduce the chance of the returning publication not being connected and rejecting the return message.
  • [Cluster] Prevent standby replicated snapshots getting stuck if the address on the standby entry is invalid.
  • [Cluster] Add ALLOW_ALL and DENY_ALL authorisation supplier options for the Cluster.
  • [Driver] Fix incorrect update frequency in PublisherPos javadoc. (#1867)
  • [Driver] Untethered subscriptions are closed after LINGER if rejoin=false is specified.
  • [Driver] Correctly handle connection status updates for untethered IPC subscribers.
  • [Driver/C] Ensure rcv-naks-sent counter is cleaned up if publication image creation fails.
  • [Driver/C] Prevent sending empty NAK message upon initial connection to the publisher.
  • [Driver] Set absolute minimum value for NAK unicast delay at 1us and use it as a default value.
  • [Driver] Ignore NAKs with zero length and treat NAKs with negative length as invalid packets.
  • [Driver/C] Fix untethered_linger_timeout_ns parsing and validation. Remove 1us min value that was applied when parsing untethered timeouts.
  • [Driver] Validate untetheredLingerTimeoutNs not below timerIntervalNs.
  • [Driver/C] Update documented NAK defaults.
  • [Driver/Java] Do not overwrite imageConnections on every received packet.
    ...
Read more

1.45.2

26 Sep 13:46
a7d8ac6

Choose a tag to compare

  • [Java] Backport Image changes to protect against stalled subscribers.
  • [C/C++ Wrapper] Include <chrono> to fix compilation error on Windows.
  • [Java] Backport releasing to Maven Central Portal.
  • [CI] Build changes to support new release process.

1.48.6

08 Aug 09:08
b6bb4a0

Choose a tag to compare

  • [Cluster] Prevent standby replicated snapshots getting stuck if the address on the standby entry is invalid.

1.47.7

08 Aug 09:10
434ed17

Choose a tag to compare

  • [Cluster] Prevent standby replicated snapshots getting stuck if the address on the standby entry is invalid.
  • [Java] Publish artifacts to Central Portal using OSSRH Staging API.

1.48.5

21 Jul 13:32
46649e8

Choose a tag to compare

  • [Java] Add ALLOW_ALL and DENY_ALL authorisation supplier options for the Archive.
  • [Java] Add ALLOW_ALL and DENY_ALL authorisation supplier options for the ConsensusModule.
  • [Archive] Copy response-endpoint, ttl and stream-id URI parameters from the original channel definition when creating recordings and replays.
  • [Archive] Do not abort ControlSession after it was closed and prevent multiple abort calls from overwriting each other.
  • [Archive] Do not log warning when control response publication is disconnected or a control request image is going away, i.e. treat those events as normal client termination. To avoid unnecessary warnings when AeronArchive is being closed and there is a race between close message arriving at the Archive and images going unavailable or publication disconnecting.
  • [C] Fix client build to properly resolve -DHAVE_BSDSTDLIB_H -DHAVE_ARC4RANDOM. (#1836)
  • [C] Fallback to /dev/urandom if arc4random is not available.
  • [C] Add aeron_archive_wrapper's own sources to the target_include_directories. (#1835)
  • [C] Send client_close command to media driver when aeron is closing. (#1837)
  • [C] Add missing assignment operator to match the copy constructor.
  • [C] Error handling fixes for destination and endpoint creation.
  • [C] Use static structs for holding loss state and cleanup dynamically allocated memory during initial load. (#1833)
  • [C] Bump CMake to 4.0.3.

1.44.7

10 Jul 10:55
7adc2da

Choose a tag to compare

  • [Archive] Copy ttl URI parameter from the original channel definition when creating recordings and replays. To ensure that the control stream will use the same TTL setting as the incoming data stream.
  • [C/C++ Wrapper] Include <chrono> to fix compilation error on Windows.
  • [Java] Backport releasing to Maven Central Portal.

1.48.4

27 Jun 16:47
120600a

Choose a tag to compare

  • [C] Fix aeron_cnc_is_file_length_sufficient, i.e. take into account error buffer length. (#1828)
  • [C] Preserve agent_on_start_func override during driver startup procedure. (#1826)
  • [C++ Wrapper] Add methods to get the registrationId of an asynchronously created resource.
  • Breaking: [Cluster] Allow ConsensusModuleExtension to do work while election is in progress. (#1827)
  • [Cluster] Add -ext suffix to ConsensusModuleExtension archive client request and response channel aliases.
  • [Driver] Add fragmentedFrameLength getter to Header. (#1829)
  • [AeronArchive] Allow NOT_CONNECTED to be returned without throwing an exception before client is closed.
  • [Cluster] Fix ClusterToolOperator#queryClusterMembers return value when query times out.
  • [Java] Bump Agrona to 2.2.4.
  • [Java] Bump SBE to 1.35.6.
  • [Java] Bump ByteBuddy to 1.17.6
  • [Java] Bump Shadow to 8.3.7.
  • [Java] Bump JUnit to 5.13.2.
  • [Java] Bump Checkstyle to 10.26.0.
  • [Java] Bump jgit to 7.3.0.202506031305-r.

1.48.3

20 Jun 14:12
9a62bd9

Choose a tag to compare

  • [Java/C] Use untethered-linger-timeout in IPC publications.
  • [Java] Bump Agrona to 2.2.3.
  • [Java] Bump SBE to 1.35.5.