Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4389

Cannot create a data node whose value starts with "-"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • scripts
    • None
    • OS: CentOS 8.4

      zookeeper: 3.7.0

    Description

      I connect to ZooKeeper server via zkCli.

      I want to create a Znode using the following command:

      // "-1" is data 
      set /seata/server.maxCommitRetryTimeout -1
      
      

      However, it threw an exception as follows:

      org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -1
      

      I tried to use character " ( double-quote ) ,  ' ( single-quote ) or  \ ( backslash ) to escape, but it still did NOT work.

      I want to know, how should this special character be escaped in zookeeper?

      Attachments

        Activity

          People

            Unassigned Unassigned
            codeplayer@foxmail.com Ready
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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