You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "tkobayas (via GitHub)" <gi...@apache.org> on 2024/08/21 06:03:06 UTC

[I] Intermittent failure of DynamicCallResourceTest.testConcurrentDynamicCalls [incubator-kie-kogito-runtimes]

tkobayas opened a new issue, #3628:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3628

   ### Describe the bug
   
   `DynamicCallResourceTest.testConcurrentDynamicCalls` fails intermittently.
   
   https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/nightly/job/kogito-runtimes.build-and-deploy/75/
   https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/nightly/job/kogito-runtimes.build-and-deploy/77/
   
   ```
   [2024-08-20T03:18:17.225Z] [ERROR] Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 28.01 s <<< FAILURE! -- in org.kie.kogito.process.dynamic.DynamicCallResourceTest
   [2024-08-20T03:18:17.225Z] [ERROR] org.kie.kogito.process.dynamic.DynamicCallResourceTest.testConcurrentDynamicCalls -- Time elapsed: 4.325 s <<< ERROR!
   [2024-08-20T03:18:17.225Z] java.util.concurrent.ExecutionException:
   [2024-08-20T03:18:17.225Z] java.lang.AssertionError: 1 expectation failed.
   [2024-08-20T03:18:17.225Z] Expected status code <200> but was <400>.
   [2024-08-20T03:18:17.225Z]
   [2024-08-20T03:18:17.225Z]      at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
   [2024-08-20T03:18:17.225Z]      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
   [2024-08-20T03:18:17.225Z]      at org.kie.kogito.process.dynamic.DynamicCallResourceTest.testConcurrentDynamicCalls(DynamicCallResourceTest.java:168)
   [2024-08-20T03:18:17.225Z]      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   [2024-08-20T03:18:17.225Z]      at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:1013)
   [2024-08-20T03:18:17.225Z]      at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:827)
   [2024-08-20T03:18:17.225Z]      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   [2024-08-20T03:18:17.225Z]      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   ```
   
   ### Expected behavior
   
   Test passes constantly.
   
   ### Actual behavior
   
   Test fails intermittently. we can confirm it in nightly build as above. Locally, I see it fails once in 4 or 5 times testing.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   Linux tkobayas-thinkpadt14sgen1.tokyo.csb 6.10.4-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Aug 11 15:56:38 UTC 2024 x86_64 GNU/Linux
   
   ### Output of `java -version`
   
   openjdk version "17.0.12" 2024-07-16 OpenJDK Runtime Environment (Red_Hat-17.0.12.0.7-2) (build 17.0.12+7) OpenJDK 64-Bit Server VM (Red_Hat-17.0.12.0.7-2) (build 17.0.12+7, mixed mode, sharing)
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
   
   main branch
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Intermittent failure of DynamicCallResourceTest.testConcurrentDynamicCalls [incubator-kie-kogito-runtimes]

Posted by "fjtirado (via GitHub)" <gi...@apache.org>.
fjtirado commented on issue #3628:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3628#issuecomment-2304681523

   @tkobayas 
   Curioulsy, in my local I get a 500 rather than a 400. In the case of the 500, the issue is that ServiceLoader is not thread safe
   
   In the case of 400 I guess the issue is related with Instance<PRocesses>.stream being called concurrently, but I was not able to reproduce locally.
   
   Ill avoid using stream() over them anyay. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Intermittent failure of DynamicCallResourceTest.testConcurrentDynamicCalls [incubator-kie-kogito-runtimes]

Posted by "fjtirado (via GitHub)" <gi...@apache.org>.
fjtirado closed issue #3628: Intermittent failure of DynamicCallResourceTest.testConcurrentDynamicCalls
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3628


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Intermittent failure of DynamicCallResourceTest.testConcurrentDynamicCalls [incubator-kie-kogito-runtimes]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #3628:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3628#issuecomment-2306447720

   @fjtirado Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Intermittent failure of DynamicCallResourceTest.testConcurrentDynamicCalls [incubator-kie-kogito-runtimes]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #3628:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3628#issuecomment-2301202308

   Probably @gmunozfe @fjtirado can have a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org