I've just spent a few hours tracking down a mysterious failure in 
previously working code that used akka persistence.
Eventually I tracked it down to the fact that akka persistence silently 
swallows non-serializable messages with no warning.
Now I appreciate that
serialize-message = on
is a documented setting and it does the job.

But it's kinda hidden way down the serialization page in the docs.
And since at least 2 serializers (default java and contributed kyro) need 
no configuration, and there's a big red warning not to use it in 
production, it is quite likely that people will not see it or not think to 
turn it on.

So firstly, is it that hard to efficiently report on a failed attempt at 
serialization at run time, for normal use? After all - it's got to be a 
programming error hasn't it? At least in akka-persistence.
Secondly, perhaps users of akka persistence should get a strong 
recommendation in the docs to turn it on in their tests.

------------------------------------
“But the plans were on display…”
“On display? I eventually had to go down to the cellar to find them.”
“That’s the display department.”
“With a flashlight.”
“Ah, well, the lights had probably gone.”
“So had the stairs.”
“But look, you found the notice, didn’t you?”
“Yes,” said Arthur, “yes I did. It was on display in the bottom of a locked 
filing cabinet stuck in a disused lavatory with a sign on the door saying 
‘Beware of the Leopard.” 
The Hitchhiker's Guide to the Galaxy


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to