Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13396

SolrCloud will delete the core data for any core that is not referenced in the clusterstate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.3.1, 8.0
    • 9.3
    • SolrCloud
    • None

    Description

      SOLR-12066 is an improvement designed to delete core data for replicas that were deleted while the node was down – better cleanup.

      In practice, that change causes SolrCloud to delete all core data for cores that are not referenced in the ZK clusterstate. If all the ZK data gets deleted or the Solr instance is pointed at a ZK ensemble with no data, it will proceed to delete all of the cores in the solr home, with no possibility of recovery.

      I do not think that Solr should ever delete core data unless an explicit DELETE action has been made and the node is operational at the time of the request. If a core exists during startup that cannot be found in the ZK clusterstate, it should be ignored (not started) and a helpful message should be logged. I think that message should probably be at WARN so that it shows up in the admin UI logging tab with default settings.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elyograg Shawn Heisey
              Votes:
              2 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h