Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-726

tmp files are .tmp.XXXXX but filtering looks for *.tmp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Private Beta
    • None
    • util
    • None

    Description

      pb_util uses a tmp file format of .tmp.XXXX. However, IsValidTabletId() in fs_manager.cc uses HasSuffixString(".tmp") to filter out tmp files. So, if we crash in between writing metadata renaming the tmp file into place, we end up trying to load a partially complete tmp file as a tablet (woops!)

      Attachments

        Activity

          People

            adar Adar Dembo
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: