Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-4583

panic on GetTotalChunksByShard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta7
    • Component/s: MongoDB_Exporter
    • Labels:
      None

      Description

      time="2019-08-27T18:07:04+08:00" level=error msg="Failed to get database status." source="database_status.go:120"time="2019-08-27T18:07:04+08:00" level=error msg="Failed to get database status." source="database_status.go:120"time="2019-08-27T18:30:33+08:00" level=error msg="Failed to get database status." source="database_status.go:120"time="2019-08-27T20:49:59+08:00" level=error msg="Failed to execute find query on 'config.chunks': connection(127.0.0.1:2800[-16]) unable to decode message length: read tcp 127.0.0.1:26455->127.0.0.1:2800: i/o timeout." source="sharding_topology.go:132"panic: runtime error: invalid memory address or nil pointer dereference panic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9fce82]
      goroutine 2488 [running]:go.mongodb.org/mongo-driver/mongo.(*Cursor).Close(0x0, 0xd5be00, 0xc000024088, 0x0, 0x0) /Users/Lee/go/pkg/mod/go.mongodb.org/mongo-driver@v1.0.3/mongo/cursor.go:130 +0x22panic(0xaed440, 0x1233250) /usr/local/Cellar/go/1.12.7/libexec/src/runtime/panic.go:522 +0x1b5go.mongodb.org/mongo-driver/mongo.(*Cursor).Next(0x0, 0xd5be00, 0xc000024088, 0xd5be00) /Users/Lee/go/pkg/mod/go.mongodb.org/mongo-driver@v1.0.3/mongo/cursor.go:78 +0x43github.com/percona/mongodb_exporter/collector/mongos.GetTotalChunksByShard(0xc000114b00, 0x0) /Users/Lee/Go/src/github.com/percona/mongodb_exporter/collector/mongos/sharding_topology.go:136 +0x3d4github.com/percona/mongodb_exporter/collector/mongos.IsClusterBalanced(0xc000114b00, 0xc0003847e0) /Users/Lee/Go/src/github.com/percona/mongodb_exporter/collector/mongos/sharding_status.go:162 +0x63github.com/percona/mongodb_exporter/collector/mongos.GetShardingStatus(0xc000114b00, 0x1) /Users/Lee/Go/src/github.com/percona/mongodb_exporter/collector/mongos/sharding_status.go:231 +0x49github.com/percona/mongodb_exporter/collector.(*MongodbCollector).collectMongos(0xc0001d6e00, 0xc000114b00, 0xc0004149c0) /Users/Lee/Go/src/github.com/percona/mongodb_exporter/collector/mongodb_collector.go:247 +0xcbgithub.com/percona/mongodb_exporter/collector.(*MongodbCollector).scrape(0xc0001d6e00, 0xc0004149c0) /Users/Lee/Go/src/github.com/percona/mongodb_exporter/collector/mongodb_collector.go:227 +0x5c0github.com/percona/mongodb_exporter/collector.(*MongodbCollector).Collect(0xc0001d6e00, 0xc0004149c0) /Users/Lee/Go/src/github.com/percona/mongodb_exporter/collector/mongodb_collector.go:178 +0x39github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1() /Users/Lee/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/registry.go:442 +0x19dcreated by github.com/prometheus/client_golang/prometheus.(*Registry).Gather /Users/Lee/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/registry.go:534 +0xdf8
      

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              li670149669 Eric Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: