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

feat: Migration of Durable State, #504 #506

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

patriknw
Copy link
Member

  • 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

References #504

* 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
Copy link
Member

@johanandren johanandren left a 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.

Some(serializedState),
stateSerializer.identifier,
stateManifest,
tags = Set.empty // not possible to preserve tags
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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)
Copy link
Member

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?

Copy link
Member Author

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"

Copy link
Member Author

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

@johanandren johanandren merged commit ead25b6 into main Jan 23, 2024
7 checks passed
@johanandren johanandren deleted the wip-504-migration-durable-state-patriknw branch January 23, 2024 16:59
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.

2 participants