yarmol / h2database

Automatically exported from code.google.com/p/h2database
0 stars 0 forks source link

Multithreading issues while compiling same Java alias source running from more Maven threads #540

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create multimodule Maven project with one parent and two children
2. create unit tests in both children using Spring and in-memory H2 database
3. create init SQL script for each test using an CODE java alias with the SAME 
NAME
3. run Maven build on parent using more threads (like -T8) and watch unit tests

Expected behavior:

Both databases run in separate threads independently.

Actual behavior:

The build occasionally fails because both scripts share the same Java file 
which is not locked in a thread-safe manner and sometimes file existence is 
expected from one thread and deleted from other.

Thank you very much for looking at this.

Original issue reported on code.google.com by vhordej...@csas.cz on 14 Jan 2014 at 1:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I AM SORRY! This was already fixed in the latest version, we used the previous 
version, please close it :(.

Original comment by vhordej...@csas.cz on 14 Jan 2014 at 1:21

GoogleCodeExporter commented 9 years ago
No problem, I will close the issue.

Original comment by thomas.t...@gmail.com on 14 Jan 2014 at 6:31

GoogleCodeExporter commented 9 years ago
Fixed in version 1.3.174 ("To compile user defined functions, the 
javax.tools.JavaCompiler is now used if available")

Original comment by thomas.t...@gmail.com on 14 Jan 2014 at 6:32