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

Error message is incorrect for linkconfig in ZkCLI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.0
    • 4.7, 6.0
    • None
    • 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);
      }

      Attachments

        1. SOLR-4072.patch
          0.8 kB
          Vamsee K. Yarlagadda

        Activity

          People

            markrmiller@gmail.com Mark Miller
            adampierce 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