I have an FSM that is exhibiting really strange behavior.
I was getting warning log lines about unhanded events, so I added a
catch-all and see strangeness.
minimally this is what it looks like
case object Committing
case class Drained(stream:String)
when(Committing) {
case Event(Drained(stream), drained) if drained + 1 < context.children.size
=>
log.info("{} drained: {}", stream, drained + 1)
stay using (drained + 1)
case Event(Drained(stream), drained) if drained + 1 ==
context.children.size =>
log.info("{} drained, finished: {}", stream, drained + 1)
connector.commitOffsets
log.info("committed")
goto(Receiving)
case Event(Drained(stream), drained) =>
log.warning("UNEXPECTED DRAINED IN COMMITTING from {} , state: {}",
stream, drained )
stay()
case Event(e, s) =>
log.warning("UNEXPECTED X IN COMMITTING from {} , state: {}", e, s)
stay()
}
The log line I get says “WARN UNEXPECTED X IN COMMITTING from Drained ,
state: 0” WTF?
How is it falling through to the catchall?
--
>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.