Skip to content

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

Merged
Arkatufus merged 1 commit into
akkadotnet:devfrom
Aaronontheweb:fix-7326-DData-RememberEntities
Aug 23, 2024
Merged

Akka.Cluster.Sharding: Don't enable durable DData for RE unless DData is storage engine#7327
Arkatufus merged 1 commit into
akkadotnet:devfrom
Aaronontheweb:fix-7326-DData-RememberEntities

Conversation

@Aaronontheweb
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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