Added 3 milliseconds between each delete/insert operation to slow down
the access to DB.
This commit is contained in:
parent
39e7eaa2b1
commit
db6e78e252
12
pom.xml
12
pom.xml
|
@ -60,18 +60,10 @@
|
|||
<artifactId>storagehub-client-library</artifactId>
|
||||
<version>[1.0.0, 2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<!-- Home Library dependencies MUST be removed when the storagehub add missing features -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library-jcr</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<!-- END of Home Library dependencies -->
|
||||
<!-- Test Dependencies -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
|
|
@ -82,6 +82,7 @@ public abstract class DocumentElaboration {
|
|||
++i;
|
||||
try {
|
||||
elaborateLine(line);
|
||||
TimeUnit.MILLISECONDS.sleep(3);
|
||||
elaborate = false;
|
||||
} catch(Exception e) {
|
||||
if(i != 1) {
|
||||
|
|
Loading…
Reference in New Issue