Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1158

Adding monitor to clean up stale local stores of tasks.

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      Add samza-rest manager that periodically cleans up the stale local stores of dead jobs/tasks.

      It performs the store deletion in two phases. Initially it deletes the offset file in the local task stores if the following condition is true. ((jobIsNotRunning || preferedHost != nmHost) && offsetFilelastModifiedTime is greater than deleteRetention).

      During the subsequent run, it deletes the local task stores if it does not contain offset file.

      Refer to the design doc of SAMZA-656 (https://issues.apache.org/jira/secure/attachment/12828083/DESIGN-SAMZA-656.pdf) for more details.

        Activity

        Hide
        spvenkat Shanthoosh Venkataraman added a comment -

        Here is the RB : https://reviews.apache.org/r/52492/ associated with the change.

        Show
        spvenkat Shanthoosh Venkataraman added a comment - Here is the RB : https://reviews.apache.org/r/52492/ associated with the change.
        Hide
        spvenkat Shanthoosh Venkataraman added a comment - - edited

        Xinyu Liu

        RB associated with this change : https://reviews.apache.org/r/52492/

        Have rebased the patch with recent master.

        ./bin/check-all.sh runs fine as well.

        Please take a look when you get a chance.

        Show
        spvenkat Shanthoosh Venkataraman added a comment - - edited Xinyu Liu RB associated with this change : https://reviews.apache.org/r/52492/ Have rebased the patch with recent master. ./bin/check-all.sh runs fine as well. Please take a look when you get a chance.
        Hide
        spvenkat Shanthoosh Venkataraman added a comment -

        Attaching the manager patch that cleans up stale task stores on an yarn node manager.

        Show
        spvenkat Shanthoosh Venkataraman added a comment - Attaching the manager patch that cleans up stale task stores on an yarn node manager.

          People

          • Assignee:
            spvenkat Shanthoosh Venkataraman
            Reporter:
            spvenkat Shanthoosh Venkataraman
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development