Skip to content

chore: remove APIs deprecated before 2.10 in akka-cluster - #33033

Open
johanandren wants to merge 3 commits into
mainfrom
johan/agent/remove-deprecated-cluster
Open

johanandren wants to merge 3 commits into
mainfrom
johan/agent/remove-deprecated-cluster

Conversation

@johanandren

Copy link
Copy Markdown
Contributor

🤖 Part of the 2.11 clean-up: one PR per module removes APIs deprecated in 2.9 or earlier, or in 2.10.0. Cross-DC deprecations are left in place.

Removed

  • UniqueAddress with an Int uid: constructor, apply, uid, copy (2.4.11). The companion now extends AbstractFunction2[Address, Long, UniqueAddress].
  • ClusterEvent.CurrentClusterState 5- and 6-arg constructors (2.6.10). CurrentClusterState.apply keeps its default arguments.

The cluster serializer only uses Long uids, so serialization is unaffected.

Also: migration guide section (shared ## Removed deprecated APIs heading with the other removal PRs; keep one when rebasing); MiMa filters in 2.11.0.backwards.excludes (changed apply/tupled/curried signatures).

Verified: root Test/compile, MultiJvm/compile for all 8 multi-jvm modules, akka-cluster/test (362), MiMa. Multi-jvm specs not run.

Downstream (compile check against a snapshot with all 2.11 removals): cinnamon only, at runtime: InstrumentedClusterActorRefProvider calls member.uniqueAddress.uid through a local UniqueAddress shim that the agent never installs, so it becomes NoSuchMethodError on the first member event. Fix is longUid. No other repo uses the removed APIs.

@johanandren

Copy link
Copy Markdown
Contributor Author

🤖 Reworded the migration guide intro and the MiMa filter comment to "deprecated in 2.10.0 or earlier", following the review on #33046.

@johanandren
johanandren marked this pull request as ready for review November 6, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant