Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9212

AzureArchiveManage.listArchives() should not delete segments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.32.0
    • Fix Version/s: 1.38.0
    • Component/s: segment-azure
    • Labels:
      None

      Description

      When the segments are listed on an azure blob store and the "0000.*" blob is missing, it will delete all other segments. This behaviour was introduced with OAK-8566

      Change: This destructive operation should not happen in method the AzureArchiveManage.listArchives() which indicates a read-only operation. One option is to pull out this functionality and call it somewhere else. 

      Why is this an issue?  There is a recovery option in org.apache.jackrabbit.oak.segment.file.tar.TarReader#collectFileEntries which calls org.apache.jackrabbit.oak.segment.file.tar.TarReader#backupSafely. If the recovery is run concurrently with AzureArchiveManage.listArchives() the result can be unexpected. 

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wingeier Aravindo Wingeier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: