-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: Migration of Durable State, #504 #506
Conversation
* adding Durable State to the MigrationTool * currently doesn't support retrieval of all persistenceIds because the jdbc plugin doesn't implement PersistenceIdsQuery, and jdbc plugin is currently the only other know plugin for durable state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lookin' good, some questions.
migration/src/main/scala/akka/persistence/r2dbc/migration/MigrationTool.scala
Show resolved
Hide resolved
Some(serializedState), | ||
stateSerializer.identifier, | ||
stateManifest, | ||
tags = Set.empty // not possible to preserve tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that a separate table in JDBC or why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use the the DurableStateStore
api, so it's not tied to jdbc plugin specifically, and from that we don't get the timestamp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I answered above question about timestamp, but same answer for tags
|
||
private def loadSourceDurableState(persistenceId: String, minRevision: Long): Future[Option[SelectedDurableState]] = { | ||
if (sourceDurableStatePluginId == "") | ||
Future.successful(None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that an error rather, misconfiguration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default value from reference.conf is
durable-state-plugin-id = "jdbc-durable-state-store"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, maybe this check is copy pasta from snapshot migration. I think it can be removed
References #504