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

backup crash: "panic: strings: negative Repeat count"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Cheshire-Cat
    • 7.0.0
    • tools
    • Untriaged
    • 1
    • Yes

    Description

      Magma backup tests failed on build 7.0.0-4226, and the issue is reproducible. The cbbackupmgr collect info log file is attached.

       

      2021-01-19T17:44:40 [INFO] running ./opt/couchbase/bin/cbbackupmgr config --archive /workspace/backup --repo default

      2021-01-19T17:44:40 [INFO] Running: ./opt/couchbase/bin/cbbackupmgr backup --archive /workspace/backup --repo default --host http://172.23.97.26 --username Administrator --password password --threads 16 --storage sqlite

      Fatal error: local() encountered an error (return code 2) while executing './opt/couchbase/bin/cbbackupmgr backup --archive /workspace/backup --repo default --host http://172.23.97.26 --username Administrator --password password --threads 16 --storage sqlite'

      Aborting.

       

      Build: 7.0.0-4226

      Job: http://perf.jenkins.couchbase.com/job/rhea-5node2/682/ 

      Logs:

      https://s3-us-west-2.amazonaws.com/perf-artifacts/jenkins-rhea-5node2-682/172.23.97.26.zip

      https://s3-us-west-2.amazonaws.com/perf-artifacts/jenkins-rhea-5node2-682/172.23.97.27.zip

      https://s3-us-west-2.amazonaws.com/perf-artifacts/jenkins-rhea-5node2-682/172.23.97.28.zip

      https://s3-us-west-2.amazonaws.com/perf-artifacts/jenkins-rhea-5node2-682/172.23.97.29.zip

       

      Attachments

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

        Activity

          It looks like there was a panic due to an invalid call to a function in the progress bar.

          2021-01-19T18:59:18.816-08:00 (Plan) Transfer of all data complete
          panic: strings: negative Repeat count
           
          goroutine 113 [running]:
          strings.Repeat(0x10e0a48, 0x1, 0xfffffffffffffffd, 0xc013ad4960, 0x1b)
          	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.15/go/src/strings/strings.go:529 +0x5e5
          github.com/couchbase/backup/plan.(*ProgressBar).completeInfoBar(0xc00001ebd0, 0x1286c20, 0xc010f52cc0, 0x4e515b0ec1, 0x3b9aca00)
          	/home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_bar.go:252 +0x314
          github.com/couchbase/backup/plan.(*ProgressBar).displayProgress(0xc00001ebd0, 0xa424738382e0001, 0x0, 0x0)
          	/home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_bar.go:170 +0x547
          github.com/couchbase/backup/plan.updateHook.func1(0xc00040f2c0, 0xc00001ec50, 0xc000042ea0, 0xc0003946c0)
          	/home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_reporter.go:78 +0x2f1
          created by github.com/couchbase/backup/plan.updateHook
          	/home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_reporter.go:66 +0xc8
          

          carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - It looks like there was a panic due to an invalid call to a function in the progress bar. 2021-01-19T18:59:18.816-08:00 (Plan) Transfer of all data complete panic: strings: negative Repeat count   goroutine 113 [running]: strings.Repeat(0x10e0a48, 0x1, 0xfffffffffffffffd, 0xc013ad4960, 0x1b) /home/couchbase/.cbdepscache/exploded/x86_64/go-1.15/go/src/strings/strings.go:529 +0x5e5 github.com/couchbase/backup/plan.(*ProgressBar).completeInfoBar(0xc00001ebd0, 0x1286c20, 0xc010f52cc0, 0x4e515b0ec1, 0x3b9aca00) /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_bar.go:252 +0x314 github.com/couchbase/backup/plan.(*ProgressBar).displayProgress(0xc00001ebd0, 0xa424738382e0001, 0x0, 0x0) /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_bar.go:170 +0x547 github.com/couchbase/backup/plan.updateHook.func1(0xc00040f2c0, 0xc00001ec50, 0xc000042ea0, 0xc0003946c0) /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_reporter.go:78 +0x2f1 created by github.com/couchbase/backup/plan.updateHook /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/plan/progress_reporter.go:66 +0xc8

          Bound the value to 0, that should fix it.

          carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - Bound the value to 0, that should fix it.

          Build couchbase-server-7.0.0-4263 contains backup commit 3492bc2 with commit message:
          MB-43760 Avoid negative string repeat in progress bar

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4263 contains backup commit 3492bc2 with commit message: MB-43760 Avoid negative string repeat in progress bar
          bo-chun.wang Bo-Chun Wang added a comment -

          I close this issue. I have a good run on build 7.0.0-4263.

          Job: http://perf.jenkins.couchbase.com/job/rhea-5node2/688/ 

          bo-chun.wang Bo-Chun Wang added a comment - I close this issue. I have a good run on build 7.0.0-4263. Job: http://perf.jenkins.couchbase.com/job/rhea-5node2/688/  

          People

            bo-chun.wang Bo-Chun Wang
            bo-chun.wang Bo-Chun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty