Solr
  1. Solr
  2. SOLR-6946

create_core should accept the port as an optional param

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      While documenting legacy distributed search, for the purpose of an example, I wanted to start 2 instances on the same machine in standalone mode with a core each and the same config set.
      Here's what I did to start the 2 nodes:

      bin/solr start -s example/nodes/node1 -p 8983
      bin/solr start -s example/nodes/node2 -p 8984 
      

      So far so good. Now, create_core doesn't accept a port number and so it pseudo-randomly picks a node to create the core i.e. I can't create a core using scripts on both nodes smoothly unless we support "-p <port number>" with that call (and may be collection too?).

      FYI, I also tried :

      bin/solr start -s example/nodes/node1 -p 8983 -e techproducts
      bin/solr start -s example/nodes/node2 -p 8984 -e techproducts
      

      but this failed as -e overrides -s. I don't really remember why we did that, but perhaps we can consider not overriding -s, even when -e is specified i.e. copy whatever is required and use -s.

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1650912 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1650912 ]

        SOLR-6946: Document -p port option for create_core and create_collection actions in bin/solr

        Show
        ASF subversion and git services added a comment - Commit 1650912 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1650912 ] SOLR-6946 : Document -p port option for create_core and create_collection actions in bin/solr
        Hide
        ASF subversion and git services added a comment -

        Commit 1650915 from Timothy Potter in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1650915 ]

        SOLR-6946: Document -p port option for create_core and create_collection actions in bin/solr

        Show
        ASF subversion and git services added a comment - Commit 1650915 from Timothy Potter in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1650915 ] SOLR-6946 : Document -p port option for create_core and create_collection actions in bin/solr
        Hide
        Anshum Gupta added a comment -

        Bulk close after 5.0 release.

        Show
        Anshum Gupta added a comment - Bulk close after 5.0 release.

          People

          • Assignee:
            Timothy Potter
            Reporter:
            Anshum Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development