Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1569

Bug in setting the frequency of Feed retention coordinator

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9
    • retention
    • None

    Description

      Currently in FeedRetentionCoordinatorBuilder, timeUnit is used to determine frequency of the retention coordinator.

              TimeUnit timeUnit = entity.getFrequency().getTimeUnit();
              if (timeUnit == TimeUnit.hours || timeUnit == TimeUnit.minutes) {
                  coord.setFrequency("${coord:hours(6)}");
              } else {
                  coord.setFrequency("${coord:days(1)}");
              }
      

      days(2) can be mapped to hours(48). If user uses hours(48) then retention coordinator runs every 6 hours instead of running daily wasting the compute resources. Instead get the time duration and use that to determine the retention job frequency.

      Also fix it in FalconUnitTestBase.

      Attachments

        1. FALCON-1569.V0.patch
          6 kB
          Sowmya Ramesh

        Activity

          People

            sowmyaramesh Sowmya Ramesh
            sowmyaramesh Sowmya Ramesh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment