Package org.gbif.dwc
Class ParallelOpeningTest
java.lang.Object
org.gbif.dwc.ParallelOpeningTest
This test checks we don't get a race condition between two processes opening the same DWC-A at the
same time.
It needs to be run from the command line, in parallel.
mvn exec:java -Dexec.mainClass=org.gbif.dwc.ParallelOpeningTest
Monitor open files with something like:
while :; do for i in `pgrep -f ParallelOpeningTest`; do echo $i && ls -l /proc/$i/fd | grep /tmp/par && echo; sleep 1; done; done
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidCheck we don't get a race condition when opening an archive which needs sorting.
-
Constructor Details
-
ParallelOpeningTest
public ParallelOpeningTest()
-
-
Method Details