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

Schema changes for tags and using Akka Serialization for payloads #467

Merged
merged 46 commits into from
Jan 8, 2021

Conversation

chbatey
Copy link
Member

@chbatey chbatey commented Dec 11, 2020

Raising so can keep track of progress. Plenty still to do

  • MySQL
  • Postgres
  • Oracle
  • H2
  • Metadata support
  • Decide what testing we want for the legacy dao
  • Optional: reduce allocation for all the Option/Try wrangling

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

looking good

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

@chbatey, I did a first pass. I will do a more detailed one later.
Left a few comments here and there.

I think we should rebase this with #465 (if I get it green). Some important pieces have moved.

We should think how we want to test the old DAO, maybe we should have one job (Scala 2.13, JDK11 and old DAO).

One more thing, some headers are missing, this will show up in the build. Need to run a sbt headersCreateAll.

@@ -259,7 +264,7 @@ jdbc-snapshot-store {
# to the same value for these other journals.
use-shared-db = null

dao = "akka.persistence.jdbc.snapshot.dao.ByteArraySnapshotDao"
dao = "akka.persistence.jdbc.snapshot.dao.AkkaSerializerSnapshotDao"
Copy link
Member

Choose a reason for hiding this comment

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

I think we can call it DefaultSnapshotDao and DefaultReadJournalDao and we don't need to expose the impl detail that it's using Akka serialization.

This is also meant to be the default DAO, so ok to have a short name.

Copy link
Member

Choose a reason for hiding this comment

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

may I insist on changing the namesto DefaultSnapshotDao and DefaultReadJournalDao? 😉

core/src/main/scala/akka/persistence/jdbc/package.scala Outdated Show resolved Hide resolved
core/src/main/resources/reference.conf Outdated Show resolved Hide resolved
core/src/main/resources/reference.conf Outdated Show resolved Hide resolved
@chbatey chbatey marked this pull request as ready for review December 23, 2020 09:16
@chbatey chbatey changed the title [Wip] Schema changes for tags and using Akka Serialization for payloads Schema changes for tags and using Akka Serialization for payloads Dec 23, 2020
@patriknw
Copy link
Member

patriknw commented Jan 4, 2021

What is remaining here? Anything that needs additional review?

@chbatey
Copy link
Member Author

chbatey commented Jan 4, 2021 via email

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

Looking really good.

I think we are almost there. I left a few comments and suggestions here and there.

Some things needs to be tackled before merging tough.

.travis.yml Outdated Show resolved Hide resolved
@@ -259,7 +264,7 @@ jdbc-snapshot-store {
# to the same value for these other journals.
use-shared-db = null

dao = "akka.persistence.jdbc.snapshot.dao.ByteArraySnapshotDao"
dao = "akka.persistence.jdbc.snapshot.dao.AkkaSerializerSnapshotDao"
Copy link
Member

Choose a reason for hiding this comment

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

may I insist on changing the namesto DefaultSnapshotDao and DefaultReadJournalDao? 😉

core/src/main/resources/reference.conf Show resolved Hide resolved
@chbatey
Copy link
Member Author

chbatey commented Jan 8, 2021

may I insist on changing the namesto DefaultSnapshotDao and DefaultReadJournalDao

If you must but i think it is inconsistent with the name of the other impl which does include how it serialises in the name

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

4 participants