Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-128 [Umbrella] RM Restart Phase 1: State storage and non-work-preserving recovery
  3. YARN-1185

FileSystemRMStateStore can leave partial files that prevent subsequent recovery

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0-beta
    • 2.3.0
    • resourcemanager
    • None
    • Reviewed

    Description

      FileSystemRMStateStore writes directly to the destination file when storing state. However if the RM were to crash in the middle of the write, the recovery method could encounter a partially-written file and either outright crash during recovery or silently load incomplete state.

      To avoid this, the data should be written to a temporary file and renamed to the destination file afterwards.

      Attachments

        1. YARN-1185.1.patch
          6 kB
          Omkar Vinit Joshi
        2. YARN-1185.2.patch
          16 kB
          Omkar Vinit Joshi
        3. YARN-1185.3.patch
          47 kB
          Omkar Vinit Joshi

        Issue Links

          Activity

            People

              ojoshi Omkar Vinit Joshi
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: