Solr
  1. Solr
  2. SOLR-4072

Error message is incorrect for linkconfig in ZkCLI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.7, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      If you don't include both the collection and confname when doing a linkconfig, it shows you an incorrect error message stating that the CONFDIR is required for linkconfig. That should be changed to COLLECTION. The incorrect code is below.

      else if (line.getOptionValue(CMD).equals(LINKCONFIG)) {
      if (!line.hasOption(COLLECTION) || !line.hasOption(CONFNAME)) {
      System.out.println("-" + CONFDIR + " and -" + CONFNAME
      + " are required for " + LINKCONFIG);
      System.exit(1);
      }

      1. SOLR-4072.patch
        0.8 kB
        Vamsee Yarlagadda

        Activity

        Hide
        Vamsee Yarlagadda added a comment -

        Patch available.

        Show
        Vamsee Yarlagadda added a comment - Patch available.
        Hide
        ASF subversion and git services added a comment -

        Commit 1565059 from Mark Miller in branch 'dev/trunk'
        [ https://svn.apache.org/r1565059 ]

        SOLR-4072: Error message is incorrect for linkconfig in ZkCLI.

        Show
        ASF subversion and git services added a comment - Commit 1565059 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1565059 ] SOLR-4072 : Error message is incorrect for linkconfig in ZkCLI.
        Hide
        ASF subversion and git services added a comment -

        Commit 1565060 from Mark Miller in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1565060 ]

        SOLR-4072: Error message is incorrect for linkconfig in ZkCLI.

        Show
        ASF subversion and git services added a comment - Commit 1565060 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1565060 ] SOLR-4072 : Error message is incorrect for linkconfig in ZkCLI.
        Hide
        Mark Miller added a comment -

        Thanks Vamsee and Adam!

        Show
        Mark Miller added a comment - Thanks Vamsee and Adam!

          People

          • Assignee:
            Mark Miller
            Reporter:
            Adam Hahn
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Development