Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akka.Cluster.Sharding: Don't enable durable DData for RE unless DData is storage engine #7327

Merged

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Aug 23, 2024

Changes

Partial fix for #7326

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

@Aaronontheweb Aaronontheweb added akka-cluster-sharding akka-ddata akka-ddata-durable LMDB implementation for persisting durable data labels Aug 23, 2024
if (shardingSettings.RememberEntities)
return settingsWithRoles;
if (shardingSettings.RememberEntities && shardingSettings.RememberEntitiesStore == RememberEntitiesStore.DData)
return settingsWithRoles; // only enable durable keys when using DData for remember-entities
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disable durable keys if we're not even using DData as the persistence mode for this remembered entity type.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Arkatufus Arkatufus merged commit ae942d0 into akkadotnet:dev Aug 23, 2024
12 checks passed
@Aaronontheweb Aaronontheweb deleted the fix-7326-DData-RememberEntities branch November 6, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-cluster-sharding akka-ddata akka-ddata-durable LMDB implementation for persisting durable data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants