You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/09/25 14:06:24 UTC

[GitHub] [pulsar] tuteng commented on issue #5269: Flaky test in DebeziumMySqlSourceTester

tuteng commented on issue #5269: Flaky test in DebeziumMySqlSourceTester
URL: https://github.com/apache/pulsar/issues/5269#issuecomment-535040156
 
 
   When testing testDebeziumMySqlSource in the PulsarFunctionsProcessTest, the following exception occurred, causing the data to change from the default 9 to 18, during this process, MySQL instance was restarted. The test was not completed and some tests were skipped. Such as field `SKIPPED` in the log below:
   
   ```
   09:57:01.287 [TestNG-method=testDebeziumMySqlSource-1:org.apache.pulsar.tests.integration.topologies.PulsarCluster@269] INFO  org.apache.pulsar.tests.integration.topologies.PulsarCluster - Stopping external service debezium-mysql-example ...
   09:57:02.663 [TestNG-method=testDebeziumMySqlSource-1:org.apache.pulsar.tests.integration.topologies.PulsarCluster@271] INFO  org.apache.pulsar.tests.integration.topologies.PulsarCluster - Successfully stop external service debezium-mysql-example
   09:57:02.670 [pulsar-client-io-30-1:org.apache.pulsar.client.impl.ConsumerImpl@676] INFO  org.apache.pulsar.client.impl.ConsumerImpl - [public/default/dbserver1.inventory.products] [debezium-source-tester] Closed consumer
   09:57:02.696 [TestNG-method=testDebeziumMySqlSource-1:org.apache.pulsar.client.impl.PulsarClientImpl@533] INFO  org.apache.pulsar.client.impl.PulsarClientImpl - Client closing. URL: pulsar://localhost:34610
   09:57:02.699 [pulsar-client-io-30-1:org.apache.pulsar.client.impl.ClientCnx@219] INFO  org.apache.pulsar.client.impl.ClientCnx - [id: 0xf84594bb, L:/127.0.0.1:51968 ! R:localhost/127.0.0.1:34610] Disconnected
   09:57:02.700 [pulsar-client-io-30-1:org.apache.pulsar.client.impl.ClientCnx@219] INFO  org.apache.pulsar.client.impl.ClientCnx - [id: 0x28051bbf, L:/127.0.0.1:51974 ! R:localhost/127.0.0.1:34610] Disconnected
   ~~~~~~~~~ SKIPPED -- [TestClass name=class org.apache.pulsar.tests.integration.functions.PulsarFunctionsProcessTest].pulsar-test-suite([])-------------- Starting test [TestClass name=class org.apache.pulsar.tests.integration.functions.PulsarFunctionsProcessTest].pulsar-test-suite([])-------
   09:57:02.819 [pulsar-client-io-37-1:org.apache.pulsar.client.impl.ConnectionPool@155] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0xb8db778b, L:/127.0.0.1:52158 - R:localhost/127.0.0.1:34610]] Connected to server
   ```
   
   But I have not reproduced this problem locally and testDebeziumMySqlSource under PulsarFunctionsThreadTest is also normal.
   
   I think this problem can be solved by deleting the topic or emptying topic data before starting the MySQL instance. what do you think? @sijie @merlimat @jiazhai 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services