problem with Testing persistence actor

45 views
Skip to first unread message

Avi

unread,
Jul 9, 2015, 5:35:50 AM7/9/15
to akka...@googlegroups.com
Hi ,
I hope that this is the right place for this question,.
I am trying to run tests on persistence actor - all tests pass,however when running all tests with maven I am getting 
[ERROR] [07/09/2015 12:18:50.410] [systemTest-akka.actor.default-dispatcher-4] [akka://systemTest/system/journal] IO error: lock  /journal/LOCK: already held by process
each test class have different ActorSystem (using TestKit) , each actor have a unique name (e.g system.actorOf(MyActor.props(UUID)) . 

why am I still getting this lock ? what am I doing wrong ?

Please advise
Thanks
Avi


Magnus Andersson

unread,
Jul 9, 2015, 3:51:20 PM7/9/15
to akka...@googlegroups.com
What type of journal/storage are you using?
Perhaps you are sharing the default LevelDB journal which is meant for one actor only and having multiple tests trying to access it concurrently?

I would recommend using the in memory journal found on community contributions page when running tests.

/Magnus

Avi Levi

unread,
Jul 9, 2015, 4:22:49 PM7/9/15
to akka...@googlegroups.com
Thanks , I am using the default journal .
when I run the tests from the IDE (intellij ) tthey run fine , I am getting that error when I run tests from maven (mvn clean install or test   )

--
>>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/OeRJCCiCk0o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages