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

[System Test] panic: runtime error: index out of range

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Build : 6.5.0-4471
      Test : -test tests/integration/test_allFeatures_madhatter_durability.yml -scope tests/integration/scope_Xattrs_Madhatter.yml
      Scale : 3
      Iteration : 1st

      Step:

      [2019-10-04T12:26:40-07:00, sequoiatools/couchbase-cli:6.5:94d558] failover -c 172.23.108.103:8091 --server-failover 172.23.106.100:8091 -u Administrator -p password --force
      [2019-10-04T12:27:26-07:00, sequoiatools/couchbase-cli:6.5:b16f29] rebalance -c 172.23.108.103:8091 -u Administrator -p password
      warning using 'json' filter:  unexpected end of JSON input []
       
      Error occurred on container - sequoiatools/couchbase-cli:6.5:[rebalance -c 172.23.108.103:8091 -u Administrator -p password]
       
      docker logs b16f29
      docker start b16f29
       
      *Unable to display progress bar on this os
      JERROR: Rebalance failed. See logs for detailed reason. You can try again.
      

      panic: (diag.log in 172.23.104.69 and 172.23.104.87)

       
      2019-10-04T12:32:10.581-07:00, ns_log:0:info:message(ns_1@172.23.104.69) - Service 'indexer' exited with status 2. Restarting. Messages:
      2019-10-04T12:32:09.130-07:00 [Info] default/default_claims/Backstore#17757113469883735399:0 Plasma: SMR reclaim pending is higher than expected: pending = 36 MB (expected = 10 MB), wCtxCnt = 30, changed reclaimList flush threshold from 12 to 13.
      panic: runtime error: index out of range
       
      goroutine 21707592 [running]:
      panic(0xf8fe20, 0xc4200160d0)
              /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.6/go/src/runtime/panic.go:500 +0x1a1
      github.com/couchbase/indexing/secondary/indexer.(*StreamState).updateRepairState(0xc42000fcc0, 0xc424430001, 0xc432425008, 0x8, 0xc4303a90f0, 0x3, 0x4, 0x0, 0x0, 0x0)
              goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_state.go:528 +0x3a5
      github.com/couchbase/indexing/secondary/indexer.(*timekeeper).sendRestartMsg(0xc42001d280, 0x1b24da0, 0xc428205650)
              goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3061 +0x1b61
      created by github.com/couchbase/indexing/secondary/indexer.(*timekeeper).repairStream
              goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3003 +0xeba
       
      2019-10-04T12:32:10.766-07:00, ns_log:0:info:message(ns_1@172.23.104.87) - Service 'indexer' exited with status 2. Restarting. Messages:
      2019-10-04T12:32:10.611-07:00 [Info] ServiceMgr::cleanupRebalanceRunning Cleanup
      2019-10-04T12:32:10.611-07:00 [Info] ClustMgr:handleDelLocalValue Key RebalanceRunning
      2019-10-04T12:32:10.612-07:00 [Info] Rebalancer::observeRebalance exiting err <nil>
      panic: runtime error: index out of range
       
      goroutine 34975387 [running]:
      panic(0xf8fe20, 0xc4200160d0)
              /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.6/go/src/runtime/panic.go:500 +0x1a1
      github.com/couchbase/indexing/secondary/indexer.(*StreamState).updateRepairState(0xc423808000, 0xc425660001, 0xc435022118, 0x8, 0xc4324b21f0, 0x3, 0x4, 0x0, 0x0, 0x0)
              goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_state.go:528 +0x3a5
      github.com/couchbase/indexing/secondary/indexer.(*timekeeper).sendRestartMsg(0xc420140c00, 0x1b24da0, 0xc433ef1ea0)
              goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3061 +0x1b61
      created by github.com/couchbase/indexing/secondary/indexer.(*timekeeper).repairStream
              goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3003 +0xeba
       
      -------------------------------
       
      
      

      logs:

      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.156.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.157.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.164.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.61.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.69.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.70.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.104.87.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.106.188.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.108.103.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.96.148.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.96.251.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.96.252.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.96.253.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.96.56.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.96.95.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.97.119.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.97.121.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.97.122.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.97.239.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.97.242.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.98.135.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.99.11.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.99.20.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.99.21.zip
      url : https://cb-jira.s3.us-east-2.amazonaws.com/logs/systestmon-1570217693/collectinfo-2019-10-04T193455-ns_1%40172.23.99.25.zip

      Attachments

        For Gerrit Dashboard: MB-36341
        # Subject Branch Project Status CR V

        Activity

          Bucket got removed from the stream state

           
          2019-10-04T12:32:06.671-07:00 [Info] Timekeeper::handleRemoveBucketFromStream
                  Message: MsgStreamUpdate
                  Type: REMOVE_BUCKET_FROM_STREAM
                  Stream: MAINT_STREAM
                  Bucket: DISTRICT
                  BuildTS: []
                  IndexList: []
                  Async: false
                  SessionId: 1
                  RestartTs: <nil>
          2019-10-04T12:32:06.671-07:00 [Info] Timekeeper::stopTimer MAINT_STREAM DISTRICT
          2019-10-04T12:32:06.671-07:00 [Info] StreamState::cleanupBucketFromStream Bucket DISTRICT Deleted from Stream MAINT_STREAM 
          
          

          But the repair is still outstanding

           
          panic: runtime error: index out of range
           
          goroutine 21707592 [running]:
          panic(0xf8fe20, 0xc4200160d0)
                  /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.6/go/src/runtime/panic.go:500 +0x1a1
          github.com/couchbase/indexing/secondary/indexer.(*StreamState).updateRepairState(0xc42000fcc0, 0xc424430001, 0xc432425008, 0x8, 0xc4303a90f0, 0x3, 0x4, 0x0, 0x0, 0x0)
                  goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_state.go:528 +0x3a5
          github.com/couchbase/indexing/secondary/indexer.(*timekeeper).sendRestartMsg(0xc42001d280, 0x1b24da0, 0xc428205650)
                  goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3061 +0x1b61
          created by github.com/couchbase/indexing/secondary/indexer.(*timekeeper).repairStream
                  goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3003 +0xeba
          
          

          deepkaran.salooja Deepkaran Salooja added a comment - Bucket got removed from the stream state   2019-10-04T12:32:06.671-07:00 [Info] Timekeeper::handleRemoveBucketFromStream Message: MsgStreamUpdate Type: REMOVE_BUCKET_FROM_STREAM Stream: MAINT_STREAM Bucket: DISTRICT BuildTS: [] IndexList: [] Async: false SessionId: 1 RestartTs: <nil> 2019-10-04T12:32:06.671-07:00 [Info] Timekeeper::stopTimer MAINT_STREAM DISTRICT 2019-10-04T12:32:06.671-07:00 [Info] StreamState::cleanupBucketFromStream Bucket DISTRICT Deleted from Stream MAINT_STREAM But the repair is still outstanding   panic: runtime error: index out of range   goroutine 21707592 [running]: panic(0xf8fe20, 0xc4200160d0) /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.6/go/src/runtime/panic.go:500 +0x1a1 github.com/couchbase/indexing/secondary/indexer.(*StreamState).updateRepairState(0xc42000fcc0, 0xc424430001, 0xc432425008, 0x8, 0xc4303a90f0, 0x3, 0x4, 0x0, 0x0, 0x0) goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_state.go:528 +0x3a5 github.com/couchbase/indexing/secondary/indexer.(*timekeeper).sendRestartMsg(0xc42001d280, 0x1b24da0, 0xc428205650) goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3061 +0x1b61 created by github.com/couchbase/indexing/secondary/indexer.(*timekeeper).repairStream goproj/src/github.com/couchbase/indexing/secondary/indexer/timekeeper.go:3003 +0xeba

          Build couchbase-server-6.5.0-4565 contains indexing commit f63d364 with commit message:
          MB-36341 use sessionId for restartVb

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-4565 contains indexing commit f63d364 with commit message: MB-36341 use sessionId for restartVb

          Build couchbase-server-6.5.0-4565 contains indexing commit 18bb20a with commit message:
          MB-36341 skip restartVb response for inactive stream

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-4565 contains indexing commit 18bb20a with commit message: MB-36341 skip restartVb response for inactive stream

          Build couchbase-server-7.0.0-1010 contains indexing commit f63d364 with commit message:
          MB-36341 use sessionId for restartVb

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-1010 contains indexing commit f63d364 with commit message: MB-36341 use sessionId for restartVb

          Build couchbase-server-7.0.0-1010 contains indexing commit 18bb20a with commit message:
          MB-36341 skip restartVb response for inactive stream

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-1010 contains indexing commit 18bb20a with commit message: MB-36341 skip restartVb response for inactive stream

          Did not find this issue in gsi and longevity system test with 6.5.0-4676, hence closing the issue.

          girish.benakappa Girish Benakappa added a comment - Did not find this issue in gsi and longevity system test with 6.5.0-4676, hence closing the issue.

          People

            deepkaran.salooja Deepkaran Salooja
            girish.benakappa Girish Benakappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty