Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12423

Race condition in program state trigger prevents from right status being updated

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: App Fabric
    • Labels:
      None
    • Rank:
      1|i006u7:

      Description

      Program state changes are sometimes not updated on time to the MDS. As a result of this, seeing this manifest as failed unit tests and integration tests.

      Example:

       FileBatchSourceTest testFileBatchInputFormatAvroNullSchema History
      Unit Tests    2 mins    
      java.util.concurrent.TimeoutException: Timeout occurred. Expected true but found false.
          at co.cask.cdap.common.utils.Tasks.waitFor(Tasks.java:70)
          at co.cask.cdap.common.utils.Tasks.waitFor(Tasks.java:91)
          at co.cask.cdap.common.utils.Tasks.waitFor(Tasks.java:130)
          at co.cask.cdap.test.AbstractProgramManager.waitForRuns(AbstractProgramManager.java:90)
          at co.cask.hydrator.plugin.batch.source.FileBatchSourceTest.workflowStartAndWait(FileBatchSourceTest.java:805)
          at co.cask.hydrator.plugin.batch.source.FileBatchSourceTest.testFileBatchInputFormatAvroNullSchema(FileBatchSourceTest.java:588)`
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                terence Terence Yim
                Reporter:
                sree Sreevatsan Raman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: