Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-42179

The short help command for cbbackupmgr restore results in a panic.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Cheshire-Cat
    • tools
    • 7.0.0-3435
    • Untriaged
    • 1
    • Yes

    Description

      Description:

      The short help command for cbbackupmgr restore results in a panic.

       

      [root@node1-cheshire-cat-testing-centos7 ~]# /opt/couchbase/bin/cbbackupmgr restore -h
      panic: strings: negative Repeat count
       
       
      goroutine 1 [running]:
      strings.Repeat(0xfb2388, 0x1, 0xfffffffffffffffe, 0xc0002d7d98, 0x2)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.15/go/src/strings/strings.go:529 +0x5e5
      github.com/couchbase/cbflag.(*Flag).usageString(0xc0002c3200, 0xc0002af800, 0x7ce)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/flag.go:210 +0x4ba
      github.com/couchbase/cbflag.(*Command).Usage(0xc0002c68c0, 0xc00011f478, 0xc000037760)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/command.go:324 +0x365
      github.com/couchbase/cbflag.(*Command).parseFlags(0xc0002c68c0, 0xc00011f478, 0xc0000321a0, 0x1, 0x1)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/command.go:208 +0x19d0
      github.com/couchbase/cbflag.(*Command).parse(0xc0002c68c0, 0xc00011f478, 0xc0000321a0, 0x1, 0x1)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/command.go:92 +0x151
      github.com/couchbase/cbflag.(*Command).parseCommands(0xc0002c6930, 0xc00011f478, 0xc000032190, 0x2, 0x2)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/command.go:104 +0x135
      github.com/couchbase/cbflag.(*Command).parse(0xc0002c6930, 0xc00011f478, 0xc000032190, 0x2, 0x2)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/command.go:90 +0xd1
      github.com/couchbase/cbflag.(*CLI).Parse(0xc0001cfa70, 0xc000032180, 0x3, 0x3)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/gopkg/go-1.15/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20200914082931-961919bbb973/cli.go:59 +0x193
      main.main()
       
      [root@node1-cheshire-cat-testing-centos7 ~]# /opt/couchbase/bin/cbbackupmgr --version
      cbbackupmgr version 7.0.0-3435 (8661cdd)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              asad.zaidi Asad Zaidi (Inactive)
              asad.zaidi Asad Zaidi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty