Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JT400 Minor issue with resource allocated to another job #6273

Open
JiriOndrusek opened this issue Jul 12, 2024 · 0 comments
Open

JT400 Minor issue with resource allocated to another job #6273

JiriOndrusek opened this issue Jul 12, 2024 · 0 comments
Labels
area/jt400 bug Something isn't working

Comments

@JiriOndrusek
Copy link
Contributor

JiriOndrusek commented Jul 12, 2024

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 JiriOndrusek added the bug Something isn't working label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jt400 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant