Solr
  1. Solr
  2. SOLR-1366

UnsupportedOperationException may be thrown when using custom IndexReader

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: replication (java), search
    • Labels:
      None

      Description

      If a custom IndexReaderFactory is specifiedd in solrconfig.xml, and IndexReader-s that it produces don't support IndexReader.directory() (such as is the case with ParallelReader or MultiReader) then an uncaught UnsupportedOperationException is thrown.

      This call is used only to retrieve the full path of the directory for informational purpose, so it shouldn't lead to a crash. Instead we could supply other available information about the reader (e.g. from its toString() method).

      1. searcher.patch
        0.9 kB
        Andrzej Bialecki
      2. SOLR-1366.patch
        1 kB
        Shalin Shekhar Mangar

        Issue Links

          Activity

          Grant Ingersoll made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Shalin Shekhar Mangar made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Mark Miller made changes -
          Assignee Mark Miller [ markrmiller@gmail.com ] Shalin Shekhar Mangar [ shalinmangar ]
          Shalin Shekhar Mangar made changes -
          Attachment SOLR-1366.patch [ 12420272 ]
          Hoss Man made changes -
          Link This issue relates to SOLR-243 [ SOLR-243 ]
          Shalin Shekhar Mangar made changes -
          Component/s replication (java) [ 12312535 ]
          Mark Miller made changes -
          Assignee Mark Miller [ markrmiller@gmail.com ]
          Andrzej Bialecki made changes -
          Field Original Value New Value
          Attachment searcher.patch [ 12416859 ]
          Andrzej Bialecki created issue -

            People

            • Assignee:
              Shalin Shekhar Mangar
              Reporter:
              Andrzej Bialecki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development