Update dependency org.agrona:agrona to v2#907
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.22.0→2.5.0Release Notes
aeron-io/agrona (org.agrona:agrona)
v2.5.0Compare Source
See 2.5.0 release notes.
v2.4.1Compare Source
JUnit6.0.3.Gradle9.4.1.Mockito5.23.0Shadow9.4.1.ByteBuddy1.18.7Checkstyle12.3.1v2.4.0Compare Source
[Breaking] Remove
org.agrona.concurrent.SigInt. Useorg.agrona.concurrent.ShutdownSignalBarrierinstead.[Breaking] Change
SystemUtil#parseDurationto reject negative values.[Breaking] Change
SystemUtil#parseSizeto reject negative values.Fix
DeadlineTimerWhee#forEachwhich could cause wrongtimerIdto be returned.(#346)
DeadlineTimerWheelclarify timer expires at or after deadline. (#345)Add
plainmethods toMarkFileeveryweakmethod. (#344)Fix
UnsafeBuffer#wrapwith raw memory address wherewrapAdjustmentwas not reset.(#348)
Fix
Int2ObjectCache#removewhich was returning last checked value when nothing was actually removed.(#351)
Fix
DirectBufferDataInput#readStringUTF8. (#353)Change
BroadcastReceiver#lapCountoperations to use opaque access. (#349)Use
Objects#checkFromIndexSizefor out of bounds checks inDirectBuffer.Use
AtomicLong#setReleaseinDynamicCompositeAgent. (#352)Add
SystemUtil#formatDuration.Add
SystemUtil#formatSize.Upgrade to
ByteBuddy1.18.3.Upgrade to
Checkstyle12.3.0.Upgrade to
Mockito5.21.0.Upgrade to
Shadow9.3.0.Remove
bndplugin.v2.3.2Compare Source
Prevent concurrent
MarkFileactivation whenorg.agrona.MarkFile.mapNewOrExistingMarkFileis used.If the mark file already exists and is not active, then the activity timestamp (
timestampFieldOffset) is atomicallyset to a special sentinel value (
org.agrona.MarkFile.ACTIVATION_IN_PROGRESS_TIMESTAMP) to prevent other processes fromconcurrent activation.
NB: If the current activation fails it will leave the activity timestamp at a sentinel value which will prevent a
restart of the process. Therefore, it is recommended to reset the activity timestamp upon failure.
v2.3.1Compare Source
org.agrona.MarkFile.mapNewOrExistingMarkFile. (#340)ByteBuddy1.17.8.Checkstyle12.1.1.JUnit6.0.1.v2.3.0Compare Source
[Breaking] Changed
org.agrona.concurrent.ShutdownSignalBarrierto use shutdown hooks instead of signals.Previously
ShutdownSignalBarrierrelied on interceptingSIGINTandSIGTERMOS signals by overriding JVM's signal handling which was preventing shutdown hooks from be executed. This in turn was breaking applications and frameworks that relied on shutdown hooks for clean termination.New implementation uses shutdown hooks instead and requires
ShutdownSignalBarrierto be explicitly closed.NB: Failure to close
ShutdownSignalBarriermight result in JVM not terminating!As the result the code using
ShutdownSignalBarrierneeds to be updated:In the above example
ShutdownSignalBarrieris closed last to ensure thatserviceterminates completely beforeShutdownSignalBarriercloses which in turn allows JVM to exit.[Breaking] Deprecated
org.agrona.concurrent.SigIntfor removal. Useorg.agrona.concurrent.ShutdownSignalBarrierinstead.NB:
org.agrona.concurrent.SigInt.register(java.lang.Runnable)is unsafe as it overridesSIGINTsignal handling of the JVM thus preventing shutdown hooks from being executed.An example using
ShutdownSignalBarrierinstead ofSigInt:[Breaking] Agrona jars no longer provide OSGI metadata as
bndplugin was removed, because it breakscompatibility with Gradle 9.1 and causes self-dependency via
baselinetask.AtomicCounter minor javadoc improvements. (#338)
Upgrade to
Gradle9.1.0.Upgrade to
ByteBuddy1.17.7.Upgrade to
Checkstyle11.1.0.Upgrade to
JUnit5.13.4.Upgrade to
Mockito5.20.0.Upgrade to
Shadow9.2.2.Upgrade to
Versions0.53.0.v2.2.4Compare Source
Changed
JUnitto 5.13.2.Checkstyleto 10.26.0.Shadowto 8.3.7.Fixed
v2.2.3Compare Source
Changed
ByteBuddyto 1.17.6.JUnitto 5.13.1.Gradleto 8.14.2.Added
SystemEpochNanoClock#INSTANCEconstant.Removed
CompilerUtil#compileOnDiskandCompilerUtil#persistmethods.v2.2.2Changed
Checkstyleto 10.25.0.v2.2.1Compare Source
Changed
IntHashSet#retainAll(Collection)andIntHashSet#retainAll(IntHashSet)no longer change the capacity of the set.JUnitto 5.13.0.Fixed
IntHashSetwhenretainAllleaves collections with a power of two number of elements.v2.2.0Compare Source
Changed
gradle/actions/setup-gradleaction for caching Gradle dependencies.Gradleto 8.14.1.Checkstyleto 10.24.0.ByteBuddyto 1.17.5.Shadowto 8.3.6.JUnitto 5.12.2.Mockitoto 5.18.0.Guava TestLibto 33.4.8-jre.Added
SystemUtil#isMacmethod.v2.1.0Compare Source
Changed
getmethod declaration to theReadablePositionclass. (eb3b7d284d)Gradleto 8.13.Checkstyleto 10.21.3.ByteBuddyto 1.17.1.Shadowto 8.3.6.JUnitto 5.12.0.Added
compareAndExchangemethods toAtomicBuffer. (#334)getAndAddPlaintoAtomicCounter. (#328)acquire/releasemethods toAtomicBuffer. (#314)acquire/releasemethods toAtomicCounter. (#315)acquire/releasemethods toPosition. (#316)plainmethods toAtomicCounter. (#317)opaquemethods toAtomicCounter. (#319)opaquemethods toAtomicBuffer. (#313)opaquemethods toPosition. (#324)timestampReleasemethod toMarkFile. (#318)StatusIndicator. (#323)Fixed
UnsafeApi#arrayBaseOffsetforwards compatible with JDK 25+ which changed the return type tolongwhereas we keep it asint.v2.0.1Compare Source
v2.0.0Compare Source
Breaking changes
org.agrona.UnsafeAccesswas removed. Useorg.agrona.UnsafeApiinstead.Note:
--add-opens java.base/jdk.internal.misc=ALL-UNNAMEDJVM option must be specified in order to useorg.agrona.UnsafeApi.org.agrona.concurrent.MemoryAccesswas removed. Use either the equivalent APIs provided byorg.agrona.UnsafeApiorjava.lang.invoke.VarHandle.org.agrona.concurrent.SigIntBarrierwas removed. Useorg.agrona.concurrent.ShutdownSignalBarrierinstead.Changelog
[Java] Added API to compute
CRC-32C(org.agrona.checksum.Crc32c) andCRC-32(org.agrona.checksum.Crc32) checksums.Note: Requires
--add-opens java.base/java.util.zip=ALL-UNNAMEDJVM option at run time in order to use these classes.[Java] stop allocating on addAll / removeAll on ObjectHashSet. (#308)
[Java] Run Mockito as Agent, i.e. fix the following warning.
[Doc] Remove reference to java 8 (#304)
[Gradle] Disable auto detection of JVMs to force a specific JVM for test execution in CI.
[Gradle] Use Gradle's version catalog feature for declaring dependencies.
[Java] Add concurrent tests for
getAndAddandgetAndSetoperations.[Java] Improve RingBuffer tests by reading one message at a time and minimizing the number of valid states.
[Java] Fail build on JavaDoc errors.
[Java] Use JUnit BOM.
[Java] Upgrade to Gradle 8.11.1.
[Java] Upgrade to Checkstyle 10.21.0.
[Java] Upgrade to ByteBuddy 1.15.11.
[Java] Upgrade to bnd 7.1.0.
[Java] Upgrade to Shadow 8.3.5.
[Java] Upgrade to JUnit 5.11.4.
[Java] Upgrade to Guava TestLib 33.4.0-jre.
v1.23.1Compare Source
Object2IntHashMap#mergeresizing the map while updating an existing key.v1.23.0Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.