Giter Site home page Giter Site logo

Comments (8)

lbialy avatar lbialy commented on June 16, 2024

Do you think serialization error should fail wrapping future?

from akka-persistence-sql-async.

ds300 avatar ds300 commented on June 16, 2024

What I think should happen is that the cause stack trace should be logged to stderr and the resulting SQL should not be executed.

from akka-persistence-sql-async.

okumin avatar okumin commented on June 16, 2024

I think that it fails……

from akka-persistence-sql-async.

lbialy avatar lbialy commented on June 16, 2024

Apparently reference implementation for LevelDB catches serialization exceptions in Try monad but doesnt perform collect { Success() } on resulting collection of Trys.

from akka-persistence-sql-async.

okumin avatar okumin commented on June 16, 2024

Such a error should be notified to PersistentActor since journals don't work if some of them silently fails.

from akka-persistence-sql-async.

okumin avatar okumin commented on June 16, 2024

I remember that serialization errors can be rejected.
http://doc.akka.io/docs/akka/2.4/scala/persistence.html#Journal_plugin_API

I'm thinking to apply the following patches.

  • Not executing when all the payload cannot be serialized
  • Logging when a serialization error occurs
    • This is for convenience
    • Users who want to handle such an error can use onPersistRejected.

from akka-persistence-sql-async.

lbialy avatar lbialy commented on June 16, 2024

👍

from akka-persistence-sql-async.

okumin avatar okumin commented on June 16, 2024

I close this issue since it looks that the above solution is accepted.

The patch has been already applied.
2c449c5

Thanks.

from akka-persistence-sql-async.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.