The GitHub Actions job "Scalafmt" on pekko.git/fix/ignore-filtered-payload-in-replay has failed. Run started by GitHub user He-Pin (triggered by He-Pin).
Head commit for run: 8e09962c950d700e31f7e7eceee4cee44115b529 / 虎鸣 <[email protected]> fix: ignore FilteredPayload in replay of persisted events Motivation: When FilteredPayload is stored in the journal (e.g. via an EventAdapter that maps certain events to FilteredPayload), replaying those events would pass FilteredPayload to the user's eventAdapter.fromJournal or receiveRecover handler, which is unexpected and can cause failures. Modification: - In ReplayingEvents (typed persistence), skip FilteredPayload by returning EmptyEventSeq before calling eventAdapter.fromJournal. - In Eventsourced (classic persistence), add a case to ignore FilteredPayload before it reaches the user's receiveRecover handler. - Add directional tests for both classic and typed persistence. Result: FilteredPayload entries in the journal are silently skipped during recovery. Sequence numbers are still correctly advanced. Tests: - sbt "persistence / Test / testOnly org.apache.pekko.persistence.PersistentActorSpec" - sbt "persistence-typed-tests / Test / testOnly org.apache.pekko.persistence.typed.scaladsl.EventSourcedBehaviorSpec" References: Refs akka/akka-core#32000 Report URL: https://github.com/apache/pekko/actions/runs/31870695274 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
