RayRoestenburg / akka-in-action

Accompanying source code for akka in action
https://www.manning.com/books/akka-in-action
MIT License
749 stars 423 forks source link

Chapter2 Fault Tolerance running program 1 #78

Open cavapoo2 opened 7 years ago

cavapoo2 commented 7 years ago

Any readme file for these programs ? This is what i get from running the first program

[info] Running aia.faulttolerance.dbstrategy1.LogProcessingApp 
[ERROR] [08/12/2017 16:36:29.692] [logprocessing-akka.actor.default-dispatcher-4] [akka://logprocessing/user/file-watcher-supervisor] actor name [db-writer-mydatabase1] is not unique!
akka.actor.ActorInitializationException: akka://logprocessing/user/file-watcher-supervisor: exception during creation
cavapoo2 commented 7 years ago

Seem's like calling


   val dbWriter = context.actorOf(
        DbWriter.props(databaseUrl),
        DbWriter.name(databaseUrl )
      )  
``
means we have 2 Actors with same name in fileWatchers var.
RayRoestenburg commented 7 years ago

Please see the book :-) https://www.manning.com/books/akka-in-action

cavapoo2 commented 7 years ago

yesh i have the book. Not sure i follow. is it meant to throw exception

RayRoestenburg commented 7 years ago

No it is not supposed to throw an exception. I'll have a look. (I was referring to the 'any readme file')

cavapoo2 commented 7 years ago

ah ok :)