akka-in-action icon indicating copy to clipboard operation
akka-in-action copied to clipboard

Chapter2 Fault Tolerance running program 1

Open cavapoo2 opened this issue 7 years ago • 5 comments

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 avatar Aug 12 '17 15:08 cavapoo2

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.

cavapoo2 avatar Aug 12 '17 18:08 cavapoo2

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

RayRoestenburg avatar Aug 18 '17 10:08 RayRoestenburg

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

cavapoo2 avatar Aug 18 '17 12:08 cavapoo2

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

RayRoestenburg avatar Aug 18 '17 13:08 RayRoestenburg

ah ok :)

cavapoo2 avatar Aug 18 '17 13:08 cavapoo2