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

Run records not fetched correctly for completed runs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.3, 4.3.2, 4.3.1, 4.3.0
    • Fix Version/s: 4.3.4
    • Component/s: CDAP
    • Labels:
      None
    • Release Notes:
      Fixed a bug that caused completed run records to be missed when storing run state, resulting in misleading log messages about ignoring killed states.
    • Rank:
      1|i00bbz:

      Description

      Whenever run record state is updated, AppMetadataStore does a lookup on existing run records to perform some validation. The lookup logic correctly reads records that are starting or running, but not records that have completed.

      This is because completed run records have an extra component in their row key that the other records do not have – the inverted start time. The lookup ignores that component in the rowkey, and will not find any completed records. This doesn't appear to have any impact currently, since we don't really have situations where a record has completed and then the state changes again. This bug is only in an internal lookup method, and not in the lookup method that is publicly visible. The class should be cleaned up so that we don't have multiple code paths for doing the same thing.

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: