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

ConfigSetService.checkConfigExists accepts empty configs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None

    Description

      Both FileSystemConfigSetService and ZkConfigSetService only checks the existence of the directory only, if we accidentally create an empty config directory this method returns true, but when we try to use the configs to create a collection we got an error message like this:

      Can't find resource 'solrconfig.xml' in classpath or '/configs/config_name', cwd=/path/to/lib/solr/server 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asalamon74 Andras Salamon
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 1h 50m
                  1h 50m