Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5242

Directories.migrateFile() does not handle -old or -tmp LDB manifests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 1.1.11
    • Component/s: None
    • Labels:
      None

      Description

      During LDB compaction a -old.json file is created with the previous manifest.

      Directories.migrateFile() only checks for the .json extension and uses the length to determine the CF name.

      This can result in the -old.json manifest getting copied to a CF-old directory in the new layout.

      see http://www.mail-archive.com/user@cassandra.apache.org/msg27583.html for an example

        Attachments

        1. 0001-CASSANDRA-5242.patch
          2 kB
          Marcus Eriksson
        2. 0001-CASSANDRA-5242-v2.patch
          2 kB
          Marcus Eriksson

          Activity

            People

            • Assignee:
              krummas Marcus Eriksson
              Reporter:
              amorton amorton
              Reviewer:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: