Deadlocks when running with more than 1 process #819
Replies: 8 comments
-
Hi, I run heavily parallelized tests each with a database connection. Do you split each process on a dedicated mysql database? |
Beta Was this translation helpful? Give feedback.
-
I have just a single database, how do you do it? |
Beta Was this translation helpful? Give feedback.
-
It is pointed out in the readme: https://github.com/paratestphp/paratest#test-token Also take a loot at: #480 (comment) |
Beta Was this translation helpful? Give feedback.
-
Thanks! I checked both things and I have these questions: |
Beta Was this translation helpful? Give feedback.
-
Yes, but test suite should be self-contained to avoid false-positives and false-negatives, so it should be the test suite that creates the database, not you manually
That's beyond the scope of this library and my knowledge, sorry :\ |
Beta Was this translation helpful? Give feedback.
-
I see, I will start a search and try to figure out the Laravel part, really thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello again! I did it but now I'm getting "PDOException: SQLSTATE[42000]: Syntax error or access violation: 1305 SAVEPOINT trans2 does not exist" |
Beta Was this translation helpful? Give feedback.
-
Sorry to ask again haha. |
Beta Was this translation helpful? Give feedback.
-
There's a way to improve or handle this? I'm using a mysql database and running some tests I got deadlocks, if I try to run it with just one thread it pass fine.
Tried with -f, runners and etc but nothing helped me =/
Beta Was this translation helpful? Give feedback.
All reactions