camel-quarkus icon indicating copy to clipboard operation
camel-quarkus copied to clipboard

JT400 Minor issue with resource allocated to another job

Open JiriOndrusek opened this issue 1 year ago • 0 comments

Bug description

When JT400 test module is executed with real service and one process is reading/wring a message. The second process might get an error response CPF2451 Message queue D_REPLMSGQ is allocated to another job.

This allocation is released after several seconds and the test contains a nawait timeout to overcome this issue. See the code.

If you run several tests in parallel. For example using a script like:

for i in {1..2}
do
    (mvn clean test -f integration-tests/jt400 -Dquarkus.http.test-port=808$i | sed "s/^/[Run $i] /") | tee jt400_$i.log &
done

and if you lower the timeout to i.e. 2 seconds. You should see the error.

I see 2 reason of this error:

  1. Some jt400 configuration forces the timeout
  2. There is an issue in releasing the jt400 connection by camel-jt400 component. (I was checking the code, but I havem't found any problem there)

From my POV, the issue is not a major, but happens only in parallel access to one resource and the timeout is quite low.

JiriOndrusek avatar Jul 12 '24 12:07 JiriOndrusek