-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disables logical deletion by default * Removes logical delete feature alltogether * Adds mima excludes
- Loading branch information
Showing
22 changed files
with
237 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 2 additions & 29 deletions
31
core/src/it/scala/akka/persistence/jdbc/integration/JdbcJournalSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,19 @@ | ||
package akka.persistence.jdbc.integration | ||
|
||
import akka.persistence.jdbc.journal.JdbcJournalSpec | ||
import akka.persistence.jdbc.testkit.internal.MySQL | ||
import akka.persistence.jdbc.testkit.internal.Oracle | ||
import akka.persistence.jdbc.testkit.internal.Postgres | ||
import akka.persistence.jdbc.testkit.internal.SqlServer | ||
import com.typesafe.config.{ ConfigFactory, ConfigValueFactory } | ||
import akka.persistence.jdbc.testkit.internal.{ MySQL, Oracle, Postgres, SqlServer } | ||
import com.typesafe.config.ConfigFactory | ||
|
||
class PostgresJournalSpec extends JdbcJournalSpec(ConfigFactory.load("postgres-application.conf"), Postgres) | ||
class PostgresJournalSpecSharedDb | ||
extends JdbcJournalSpec(ConfigFactory.load("postgres-shared-db-application.conf"), Postgres) | ||
class PostgresJournalSpecPhysicalDelete | ||
extends JdbcJournalSpec( | ||
ConfigFactory | ||
.load("postgres-application.conf") | ||
.withValue("jdbc-journal.logicalDelete", ConfigValueFactory.fromAnyRef(false)), | ||
Postgres) | ||
|
||
class MySQLJournalSpec extends JdbcJournalSpec(ConfigFactory.load("mysql-application.conf"), MySQL) | ||
class MySQLJournalSpecSharedDb extends JdbcJournalSpec(ConfigFactory.load("mysql-shared-db-application.conf"), MySQL) | ||
class MySQLJournalSpecPhysicalDelete | ||
extends JdbcJournalSpec( | ||
ConfigFactory | ||
.load("mysql-application.conf") | ||
.withValue("jdbc-journal.logicalDelete", ConfigValueFactory.fromAnyRef(false)), | ||
MySQL) | ||
|
||
class OracleJournalSpec extends JdbcJournalSpec(ConfigFactory.load("oracle-application.conf"), Oracle) | ||
class OracleJournalSpecSharedDb extends JdbcJournalSpec(ConfigFactory.load("oracle-shared-db-application.conf"), Oracle) | ||
class OracleJournalSpecPhysicalDelete | ||
extends JdbcJournalSpec( | ||
ConfigFactory | ||
.load("oracle-application.conf") | ||
.withValue("jdbc-journal.logicalDelete", ConfigValueFactory.fromAnyRef(false)), | ||
Oracle) | ||
|
||
class SqlServerJournalSpec extends JdbcJournalSpec(ConfigFactory.load("sqlserver-application.conf"), SqlServer) | ||
class SqlServerJournalSpecSharedDb | ||
extends JdbcJournalSpec(ConfigFactory.load("sqlserver-shared-db-application.conf"), SqlServer) | ||
class SqlServerJournalSpecPhysicalDelete | ||
extends JdbcJournalSpec( | ||
ConfigFactory | ||
.load("sqlserver-application.conf") | ||
.withValue("jdbc-journal.logicalDelete", ConfigValueFactory.fromAnyRef(false)), | ||
SqlServer) |
17 changes: 0 additions & 17 deletions
17
core/src/it/scala/akka/persistence/jdbc/integration/LogicalDeleteQueryTest.scala
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
core/src/main/mima-filters/5.1.0.backwards.excludes/issue-557-logical-delete.excludes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.persistence.jdbc.config.BaseDaoConfig.logicalDelete") | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.persistence.jdbc.config.ReadJournalConfig.includeDeleted") | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.persistence.jdbc.journal.dao.legacy.BaseByteArrayJournalDao.logWarnAboutLogicalDeletionDeprecation") | ||
ProblemFilters.exclude[DirectMissingMethodProblem]("akka.persistence.jdbc.journal.dao.legacy.ByteArrayJournalDao.logWarnAboutLogicalDeletionDeprecation") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
core/src/test/resources/h2-application-with-hard-delete.conf
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
core/src/test/resources/mysql-application-with-hard-delete.conf
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
core/src/test/resources/oracle-application-with-hard-delete.conf
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.