You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Thomas Weise (JIRA)" <ji...@apache.org> on 2017/11/03 07:30:00 UTC

[jira] [Commented] (APEXMALHAR-2549) JdbcIOAppTest.testApplication is flaky

    [ https://issues.apache.org/jira/browse/APEXMALHAR-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237203#comment-16237203 ] 

Thomas Weise commented on APEXMALHAR-2549:
------------------------------------------

It is no surprise that this test fails randomly:

{code}
    try {
      LocalMode lma = LocalMode.newInstance();
      Configuration conf = new Configuration(false);
      lma.prepareDAG(new JdbcIOApp(), conf);
      LocalMode.Controller lc = lma.getController();
      lc.runAsync();
      // wait for records to be added to table
      Thread.sleep(3000);
      lc.shutdown();
      Assert.assertEquals("Events in store", 10, getNumOfEventsInStore());
    } catch (ConstraintViolationException e) {
      Assert.fail("constraint violations: " + e.getConstraintViolations());
    }
{code}

> JdbcIOAppTest.testApplication is flaky
> --------------------------------------
>
>                 Key: APEXMALHAR-2549
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2549
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>            Reporter: Thomas Weise
>            Priority: Major
>
> One of the tests that from time to time shows up as CI failure:
> java.lang.AssertionError: Events in store expected:<10> but was:<0>
> 	at com.datatorrent.lib.db.jdbc.JdbcIOAppTest.testApplication(JdbcIOAppTest.java:127)
> https://builds.apache.org/job/Apex_Malhar_PR/org.apache.apex$malhar-library/1726/testReport/junit/com.datatorrent.lib.db.jdbc/JdbcIOAppTest/testApplication/



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)