Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5355 YARN Timeline Service v.2: alpha 2
  3. YARN-6874

Supplement timestamp for min start/max end time columns in flow run table to avoid overwrite

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Following test case is failing in YARN-5355 branch.
      This is coming because we are not supplementing the timestamp for FlowRunColumn i.e. min_start_time and max_end_time columns, post YARN-6850 which can lead to a clash, if 2 writes for app created events happen at the same time, which is true for this test case.
      To fix this, we need to pass true flag into ColumnHelper constructor. I did encounter this failure once earlier too.

      testWriteFlowRunMinMax(org.apache.hadoop.yarn.server.timelineservice.storage.flow.TestHBaseStorageFlowRun)  Time elapsed: 0.088 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<1425026900000> but was:<1425026901000>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.apache.hadoop.yarn.server.timelineservice.storage.flow.TestHBaseStorageFlowRun.testWriteFlowRunMinMax(TestHBaseStorageFlowRun.java:237)
      

      Attachments

        Activity

          People

            vrushalic Vrushali C
            varun_saxena Varun Saxena
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: