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

Provide a way to know when Core Discovery is finished and when all async cores are done loading

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6.1, 6.7, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Custom transient core implementations could benefit from knowing two things:
      1> that core discovery is over
      2> that all cores that are going to be loaded have been loaded, i.e. all loadOnStartup cores are done.

      It should be trivial to add a method to CoreContainer like "isLoaded" that would answer the first question since you can't get past the load() method without all the cores being discovered. I think this is a more generally useful bit of information than just core discovery is done.

      As for the second, that too seems trivial, just add a method to CoreContainer that returns the number of entries in SolrCores.currentlyLoadingCores.

      I'll add this in a few days unless there are objections.

        Attachments

        1. SOLR-10721.patch
          4 kB
          Erick Erickson
        2. SOLR-10721.patch
          3 kB
          Erick Erickson

          Activity

            People

            • Assignee:
              erickerickson Erick Erickson
              Reporter:
              erickerickson Erick Erickson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: