Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-BETA
    • Component/s: None
    • Labels:
      None

      Description

      Reloading a core can cause the new core to have an older view of the index than the old core.

      1. SOLR-3662.patch
        16 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        This patch improves a number of areas related to reload:

        • the VersionInfo class was holding onto a SolrCore reference (which is used to look up versions in the index)
        • on a reload, the old core is passed to the constructor and if a writer was open in the core state, it's used to open the first reader so that we see changes in the writer (and hence don't go back in time with respect to NRT readers in the previous core)
        • update handler (which is no longer a singleton per writer) synchronizes on the core state instance instead

        With these changes, TestReload now passes

        Show
        Yonik Seeley added a comment - This patch improves a number of areas related to reload: the VersionInfo class was holding onto a SolrCore reference (which is used to look up versions in the index) on a reload, the old core is passed to the constructor and if a writer was open in the core state, it's used to open the first reader so that we see changes in the writer (and hence don't go back in time with respect to NRT readers in the previous core) update handler (which is no longer a singleton per writer) synchronizes on the core state instance instead With these changes, TestReload now passes

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development