Skip to content

refactor: remove deprecated DurableStateUpdateStore.deleteObject(persistenceId) (since Akka 2.6.20)#3290

Draft
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:remove/deprecated-deleteObject
Draft

refactor: remove deprecated DurableStateUpdateStore.deleteObject(persistenceId) (since Akka 2.6.20)#3290
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:remove/deprecated-deleteObject

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 4, 2026

Copy link
Copy Markdown
Member

Motivation

The single-argument deleteObject(persistenceId) was deprecated since Akka 2.6.20 in favor of the overload that takes a revision parameter for optimistic locking.

Modification

Remove the deprecated abstract method from both scaladsl and javadsl DurableStateUpdateStore traits. Remove the corresponding TCK test for the deprecated overload.

Result

Only the revision-aware deleteObject(persistenceId, revision) remains in the trait.

Note: Implementation projects (pekko-persistence-r2dbc, pekko-persistence-jdbc, pekko-persistence-cassandra, pekko-persistence-dynamodb) will need follow-up PRs to remove their overrides of this deleted method.

Tests

Not run - trait method removal with TCK test cleanup

References

None - deprecated API cleanup

@He-Pin He-Pin marked this pull request as draft July 4, 2026 20:33
@He-Pin He-Pin force-pushed the remove/deprecated-deleteObject branch 2 times, most recently from 582cfa2 to d711969 Compare July 5, 2026 06:38
@He-Pin

He-Pin commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

Maybe we should keep this a little longer

@He-Pin He-Pin force-pushed the remove/deprecated-deleteObject branch from d711969 to 569ba6e Compare July 6, 2026 16:52
@He-Pin He-Pin requested a review from pjfanning July 6, 2026 16:54
…istenceId) (since Akka 2.6.20)

Motivation:
The single-argument deleteObject(persistenceId) was deprecated since Akka
2.6.20 in favor of the overload that takes a revision parameter for
optimistic locking.

Modification:
Remove the deprecated abstract method from both scaladsl and javadsl
DurableStateUpdateStore traits. Remove the corresponding TCK test.

Result:
Only the revision-aware deleteObject(persistenceId, revision) remains.
Implementation projects (r2dbc, jdbc, cassandra, dynamodb) will need to
remove their overrides of the deleted method.

Tests:
Not run - trait method removal with TCK test cleanup

References:
None - deprecated API cleanup
@He-Pin He-Pin force-pushed the remove/deprecated-deleteObject branch from 569ba6e to c87fdcd Compare July 6, 2026 17:01
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