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

/bin/solr create script always returns exit code 0

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      /bin/solr create collection script always returns exit code 0 when a collection already exists (solrCloud mode).
      version 5.1 returns exit code 1 but I just noticed that versions 5.4.0 and 5.5.0 returns 0

      >$ solr create -c my-collection -p 8983
      Connecting to ZooKeeper at localhost:9983 ...
      Re-using existing configuration directory my-collection
      ERROR:
      Collection 'my-collection' already exists!
      Checked collection existence using Collections API command:
      http://localhost:8983/solr/admin/collections?action=list
      >$ echo $?
      0

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sarowe Steven Rowe
            kalharbi Khalid Alharbi
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1m
              1m
              Remaining:
              Remaining Estimate - 1m
              1m
              Logged:
              Time Spent - Not Specified
              Not Specified

              Slack

                Issue deployment