Solr
  1. Solr
  2. SOLR-5121

zkcli usage for makepath doesn't match actual command.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      After the patch for SOLR-4972 was introduced, the usage for zkcli.sh -cmd makepath changed to

      zkcli.sh -zkhost localhost:9983 -cmd makepath /apache/solr/data.txt 'config data'

      Yet that is not what the command expects, it expects just a single path to create, no data can be supplied.

      "put" is the new way to create an actual file in ZK.

      Am assuming makepath should have stayed as it was (so command is correct, but usage is wrong), alternatively usage might be right and makepath could be a superset of PUT (but that seems unlikely)

      1. SOLR-5121.patch
        1 kB
        Daniel Collins

        Activity

        Hide
        Daniel Collins added a comment -

        Trivial patch attached to correct the usage to what I think it should be.

        Show
        Daniel Collins added a comment - Trivial patch attached to correct the usage to what I think it should be.
        Hide
        ASF subversion and git services added a comment -

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

        SOLR-5121: zkcli usage help for makepath doesn't match actual command.

        Show
        ASF subversion and git services added a comment - Commit 1512435 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1512435 ] SOLR-5121 : zkcli usage help for makepath doesn't match actual command.
        Hide
        ASF subversion and git services added a comment -

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

        SOLR-5121: zkcli usage help for makepath doesn't match actual command.

        Show
        ASF subversion and git services added a comment - Commit 1512438 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1512438 ] SOLR-5121 : zkcli usage help for makepath doesn't match actual command.
        Hide
        Mark Miller added a comment -

        Thanks Daniel!

        Show
        Mark Miller added a comment - Thanks Daniel!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development