Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter2 Fault Tolerance running program 1 #78

Open
cavapoo2 opened this issue Aug 12, 2017 · 5 comments
Open

Chapter2 Fault Tolerance running program 1 #78

cavapoo2 opened this issue Aug 12, 2017 · 5 comments

Comments

@cavapoo2
Copy link

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
Copy link
Author

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
Copy link
Owner

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

@cavapoo2
Copy link
Author

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

@RayRoestenburg
Copy link
Owner

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

@cavapoo2
Copy link
Author

ah ok :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants