[
https://issues.apache.org/jira/browse/CAMEL-22152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17979924#comment-17979924
]
Aurélien Pupier edited comment on CAMEL-22152 at 6/17/25 12:33 PM:
-------------------------------------------------------------------
reproducign more than 1 out of 2 times locally.
I tried to put tracepoint to compare the received messages, they look very
similar, only ids are different:
{noformat}
Exchange[B4E48909750DA7D-0000000000000000]
Message[B4E48909750DA7D-0000000000000000]
MSH|^~\&|REQUESTING|ICE|INHOUSE|RTH00|20250617142810||ORM^O01|00001|D|2.3|||AL|NE|||
PID|1||ICE999999^^^ICE^ICE||Testpatient^Testy^^^Mr||19740401|M|||123 Barrel
Drive^^^^SW18 4RT|||||2||||||||||||||
NTE|1||Free text for entering clinical details|
PV1|1||^^^^^^^^Admin Location|||||||||||||||NHS|
ORC|NW|213||175|REQ||||20080808093202|ahsl^^Administrator||G999999^TestDoctor^GPtests^^^^^^NAT|^^^^^^^^Admin
Location | 819600|200808080932||RTH00||ahsl^^Administrator||
OBR|1|213||CCOR^Serum Cortisol ^
JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|2|213||GCU^Serum Copper ^ JRH06
|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|3|213||THYG^Serum Thyroglobulin
^JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
class java.lang.String
{noformat}
{noformat}
Exchange[B4E48909750DA7D-0000000000000001]
Message[B4E48909750DA7D-0000000000000001]
MSH|^~\&|REQUESTING|ICE|INHOUSE|RTH00|20250617142810||ORM^O01|00001|D|2.3|||AL|NE|||
PID|1||ICE999999^^^ICE^ICE||Testpatient^Testy^^^Mr||19740401|M|||123 Barrel
Drive^^^^SW18 4RT|||||2||||||||||||||
NTE|1||Free text for entering clinical details|
PV1|1||^^^^^^^^Admin Location|||||||||||||||NHS|
ORC|NW|213||175|REQ||||20080808093202|ahsl^^Administrator||G999999^TestDoctor^GPtests^^^^^^NAT|^^^^^^^^Admin
Location | 819600|200808080932||RTH00||ahsl^^Administrator||
OBR|1|213||CCOR^Serum Cortisol ^
JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|2|213||GCU^Serum Copper ^ JRH06
|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|3|213||THYG^Serum Thyroglobulin
^JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
class java.lang.String
{noformat}
note that I reproduce launching only this single test, so the "extra second
message" is generated from this test only
was (Author: apupier):
reproducign more than 1 out of 2 times locally.
I tried to put tracepoint to compare the received messages, they look very
similar, only ids are different:
{noformat}
Exchange[B4E48909750DA7D-0000000000000000]
Message[B4E48909750DA7D-0000000000000000]
MSH|^~\&|REQUESTING|ICE|INHOUSE|RTH00|20250617142810||ORM^O01|00001|D|2.3|||AL|NE|||
PID|1||ICE999999^^^ICE^ICE||Testpatient^Testy^^^Mr||19740401|M|||123 Barrel
Drive^^^^SW18 4RT|||||2||||||||||||||
NTE|1||Free text for entering clinical details|
PV1|1||^^^^^^^^Admin Location|||||||||||||||NHS|
ORC|NW|213||175|REQ||||20080808093202|ahsl^^Administrator||G999999^TestDoctor^GPtests^^^^^^NAT|^^^^^^^^Admin
Location | 819600|200808080932||RTH00||ahsl^^Administrator||
OBR|1|213||CCOR^Serum Cortisol ^
JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|2|213||GCU^Serum Copper ^ JRH06
|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|3|213||THYG^Serum Thyroglobulin
^JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
class java.lang.String
{noformat}
{noformat}
Exchange[B4E48909750DA7D-0000000000000001]
Message[B4E48909750DA7D-0000000000000001]
MSH|^~\&|REQUESTING|ICE|INHOUSE|RTH00|20250617142810||ORM^O01|00001|D|2.3|||AL|NE|||
PID|1||ICE999999^^^ICE^ICE||Testpatient^Testy^^^Mr||19740401|M|||123 Barrel
Drive^^^^SW18 4RT|||||2||||||||||||||
NTE|1||Free text for entering clinical details|
PV1|1||^^^^^^^^Admin Location|||||||||||||||NHS|
ORC|NW|213||175|REQ||||20080808093202|ahsl^^Administrator||G999999^TestDoctor^GPtests^^^^^^NAT|^^^^^^^^Admin
Location | 819600|200808080932||RTH00||ahsl^^Administrator||
OBR|1|213||CCOR^Serum Cortisol ^
JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|2|213||GCU^Serum Copper ^ JRH06
|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
OBR|3|213||THYG^Serum Thyroglobulin
^JRH06|||200808080932||0.100||||||^|G999999^TestDoctor^GPtests^^^^^^NAT|819600|ADM162||||||820|||^^^^^R||||||||
class java.lang.String
{noformat}
> camel-mllp - fix issure related to flaky test
> MllpTcpServerConsumerOptionalEndOfDataWithValidationTest.testMessageWithoutEndOfDataByte
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-22152
> URL: https://issues.apache.org/jira/browse/CAMEL-22152
> Project: Camel
> Issue Type: Test
> Components: camel-mllp
> Affects Versions: 4.12.0
> Reporter: Aurélien Pupier
> Priority: Minor
>
> it failed in the last 2 builds on Ubuntu with Java 17:
> {noformat}
> java.lang.AssertionError: mock://complete Received message count. Expected:
> <1> but was: <2>
> at
> org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:2057)
> at
> org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1992)
> at
> org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:495)
> at
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:473)
> at
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:463)
> at
> org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:286)
> at
> org.apache.camel.component.mllp.TcpServerConsumerEndOfDataAndValidationTestSupport.doPostTearDown(TcpServerConsumerEndOfDataAndValidationTestSupport.java:120)
> at
> org.apache.camel.test.junit5.CamelTestSupport.tearDown(CamelTestSupport.java:242)
> at java.base/java.lang.reflect.Method.invoke(Method.java:569)
> at
> java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
> at
> java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
> at
> java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
> at
> java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
> at
> java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)