Description
Whenever exporting simultaneous cucumber tests using the REST API endpoint an error is shown, the endpoint used is the Exporting Cucumber
How to reproduce:
1) Create a Test Plan with all the Cucumber Tests of the Calculator
2) Create a script to create a request every 200ms
After 10 requests, some errors like that are shown:
2018-12-27 10:17:13,369 http-nio-26000-exec-42 ERROR admin 617x23183x47 r9kc9x 172.17.0.1 /rest/raven/1.0/export/test [c.x.r.r.internal.external.ImportExportResource] Export execution result completed with internal errors2018-12-27 10:17:13,369 http-nio-26000-exec-42 ERROR admin 617x23183x47 r9kc9x 172.17.0.1 /rest/raven/1.0/export/test [c.x.r.r.internal.external.ImportExportResource] Export execution result completed with internal errorsjava.io.FileNotFoundException: /var/atlassian/jira/tmp/1_CALC-1927.feature (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.xpandit.raven.rest.internal.external.ImportExportResource.multiExportAction(ImportExportResource.java:226) at sun.reflect.GeneratedMethodAccessor1064.invoke(Unknown Source) ... 1 filtered at java.lang.reflect.Method.invoke(Method.java:498) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) ... 41 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 53 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 19 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 10 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 4 filtered at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 23 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)