Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7593 Supporting HSync and lease recovery
  3. HDDS-10141

[hsync]Support hard limit and auto recovery for hsync file

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      Introduce a new property “ozone.om.lease.hard.limit”(default 7d) for hsync open files. 

      For an hsync open file in OpenFileTable, if file lifetime is already beyond the “ozone.om.lease.hard.limit” threshold, there are two cases, OpenKeyCleanupService will

      1. If it has the “leaseRecovery” flag set, which means it is under an explicitly lease recovery, then OpenKeyCleanupService will keep it in OpenFileTable.

      2. If it doesn’t has the “leaseRecovery” flag set, then OpenKeyCleanupService will auto commit it with the KeyInfo in openFileTable. In this case, the final block might lose some data at the block end which is hsynced.

      Attachments

        Issue Links

          Activity

            People

              ashishk Ashish Kumar
              ashishk Ashish Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: