Release Notes (2.0.x)
2.0.0
Release notes for Apache Pekko Persistence JDBC 2.0.0. See the GitHub milestones for 2.0.0-M1 and 2.0.0-M2 for a fuller list of changes.
This is a new major release. Please read the Migration Guide before upgrading from a 1.x release.
Main changes
- Pekko 2.0 is the new minimum Pekko version
- Java 17 is the new minimum JRE version
- Scala 2.12 support dropped; Scala 2.13 and Scala 3 are supported
- Slick 3.6.1
- A lot of deprecated code removed (PR335, PR345)
- Use the Pekko
CurrentLastSequenceNumberByPersistenceIdQuerytrait (PR272) - The internals of the javadsl
JdbcDurableStateStoreare no longer public. Obtain the store viaDurableStateStoreRegistry(PR661) - The Oracle JDBC driver used for testing is now
ojdbc11instead ofojdbc8(PR612)
Legacy schema support removed
Support for the legacy pre-5.0.0 akka-persistence-jdbc schema (the journal and snapshot tables) has been removed, along with the migrator module (PR621). If you still have data in the legacy tables, use the migrator from 1.4.0 or a later 1.x release to move it to the current schema before upgrading to 2.0.0. See Migration.
Schema changes
Migration scripts for these changes are in the migration-2.0.0 directories for each database type, in our git repo or the source release. They are not applied automatically. See Migration.
- Optimized
event_tagtable writes: theevent_tagtable can now use the primary key of theevent_journaltable instead of an auto-increment column. This is opt-in via thelegacy-tag-keysetting (PR386, PR594) - Add indexes on the tag columns to make tag queries such as
eventsByTagmore efficient (PR593) - Make the
TAGcolumn of the OracleDURABLE_STATEtable nullable (PR485)
Bug fixes
- Honor snapshot selection lower bounds (PR618)
- Complete the journal write queue when the plugin actor stops (PR609)
- Use the configured schema in the H2 durable state sequence lookup (PR608)
- Close the blob streams that snapshot payloads are read from (PR607)
- Close Slick databases that are created but never closed (PR606)
Performance
- Reduce memory use when replaying messages (PR648)
- Avoid an event serialization roundtrip for
SerializedEvent(PR673) - Defer debug log message construction to the logging backend (PR616)
Changes also in 1.x releases
The following changes were included in 2.0.0 milestones and have also been released in 1.x releases: