Lucy
  1. Lucy
  2. LUCY-193

Occasional schema file name collision under 'truncate'

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.1.0 (incubating), 0.2.0 (incubating), 0.2.1 (incubating), 0.2.2 (incubating)
    • Fix Version/s: 0.3.0 (incubating)
    • Component/s: Index
    • Labels:
      None

      Description

      When 'truncate' is true for an Indexer's constructor, by a
      quirk of fate, it will always write a schema file named
      "schema_1.json". If the existing schema file is also named that
      (as it would be on successive truncating runs), the files will
      collide, resulting in either a clobber a crash depending on OS.

      The solution is to derive the name of the schema file from the
      name of the snapshot file.

      Original user list trouble report: http://s.apache.org/90L

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Marvin Humphrey
            Reporter:
            Marvin Humphrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development