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

Intermittent failure of MyBatisConsumerTest #4781

Closed
zhfeng opened this issue Apr 14, 2023 · 0 comments
Closed

Intermittent failure of MyBatisConsumerTest #4781

zhfeng opened this issue Apr 14, 2023 · 0 comments
Assignees
Milestone

Comments

@zhfeng
Copy link
Contributor

zhfeng commented Apr 14, 2023

https://github.com/apache/camel-quarkus/actions/runs/4694358152/jobs/8323072795

[INFO] Running org.apache.camel.quarkus.component.mybatis.it.MyBatisConsumerTest
[INFO] H2 database started in TCP server mode; server status: TCP server running at tcp://10.1.0.16:9092 (only local connections)
2023-04-14 01:05:43,041 INFO  [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime
2023-04-14 01:05:43,046 INFO  [org.apa.cam.mai.MainSupport] (main) Apache Camel (Main) 4.0.0-M2 is starting
2023-04-14 01:05:43,271 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 4.0.0-M2 (camel-1) is starting
2023-04-14 01:05:43,287 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Routes startup (total:9 started:8 disabled:1)
2023-04-14 01:05:43,287 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route1 (direct://selectOne)
2023-04-14 01:05:43,288 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route2 (direct://selectList)
2023-04-14 01:05:43,288 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route3 (direct://insertOne)
2023-04-14 01:05:43,289 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route4 (direct://insertList)
2023-04-14 01:05:43,290 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route5 (direct://deleteOne)
2023-04-14 01:05:43,290 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route6 (direct://deleteList)
2023-04-14 01:05:43,290 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route7 (direct://updateOne)
2023-04-14 01:05:43,291 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Started route8 (direct://updateList)
2023-04-14 01:05:43,292 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main)     Disabled mybatis-consumer (mybatis://selectUnprocessedAccounts)
2023-04-14 01:05:43,293 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 4.0.0-M2 (camel-1) started in 109ms (build:0ms init:89ms start:20ms)
2023-04-14 01:05:43,440 INFO  [io.quarkus] (main) camel-quarkus-integration-test-mybatis 3.0.0-SNAPSHOT on JVM (powered by Quarkus 3.0.0.Final) started in 6.506s. Listening on: http://localhost:45125
2023-04-14 01:05:43,441 INFO  [io.quarkus] (main) Profile test activated. 
2023-04-14 01:05:43,441 INFO  [io.quarkus] (main) Installed features: [agroal, camel-core, camel-direct, camel-jta, camel-mock, camel-mybatis, cdi, jdbc-h2, mybatis, narayana-jta, resteasy, resteasy-jackson, smallrye-context-propagation, vertx]
2023-04-14 01:05:44,908 INFO  [org.apa.cam.com.moc.MockEndpoint] (executor-thread-1) Asserting: mock://results is satisfied
Error:  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 16.452 s <<< FAILURE! - in org.apache.camel.quarkus.component.mybatis.it.MyBatisConsumerTest
Error:  testSelectList  Time elapsed: 3.481 s  <<< FAILURE!
java.lang.AssertionError: 
1 expectation failed.
JSON path size() doesn't match.
Expected: <2>
  Actual: <1>

It needs to wait until the onConsume statments complete.

zhfeng added a commit to zhfeng/camel-quarkus that referenced this issue Apr 14, 2023
zhfeng added a commit to zhfeng/camel-quarkus that referenced this issue Apr 14, 2023
@zhfeng zhfeng self-assigned this Apr 14, 2023
@zhfeng zhfeng closed this as completed in b89f922 Apr 14, 2023
@ppalaga ppalaga added this to the 3.0.0-M2 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants