Lucene - Core
  1. Lucene - Core
  2. LUCENE-2533

FileSwitchDirectory should uniqueify the String file names returned by listAll

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Right now we blindly concatenate what's returned from primary & secondary.

      But a legit use of FSD is pointing to the same underlying FSDir but w/ different impls for opening the inputs/outputs.

      I have simple patch that just uniqueifies using Set<String>.

        Activity

        Hide
        Robert Muir added a comment -

        reopening for possible 2.9.4/3.0.3 backport.

        Show
        Robert Muir added a comment - reopening for possible 2.9.4/3.0.3 backport.
        Hide
        Uwe Schindler added a comment -

        I'll take this one, its committing....

        Show
        Uwe Schindler added a comment - I'll take this one, its committing....
        Hide
        Uwe Schindler added a comment -

        Committed 3.0 branch revision: 1028931
        Committed 2.9 branch revision: 1028933

        Show
        Uwe Schindler added a comment - Committed 3.0 branch revision: 1028931 Committed 2.9 branch revision: 1028933

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Michael McCandless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development