This is what we’re seeing currently when we reboot the instance:
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: panic: runtime error: slice bounds out of range
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: goroutine 2748140 [running]:
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*Arena).getKey(...)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/arena.go:118
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*node).key(...)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/skl.go:143
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*Skiplist).findNear(0xc4db93f2a0, 0xc4c02bb710, 0x30, 0x30, 0xc4dc810100, 0xc42ac53601, 0xc42ac53650)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/skl.go:209 +0x311
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*Skiplist).Get(0xc4db93f2a0, 0xc4c02bb710, 0x30, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/skl.go:376 +0x89
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*DB).get(0xc420375880, 0xc4c02bb710, 0x30, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/db.go:501 +0x111
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*Item).yieldItemValue(0xc4a13a2000, 0x0, 0xc470576400, 0xc420172138, 0x7fd5c68f0458, 0x0, 0x40)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/iterator.go:178 +0x3c4
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger.(*Item).Value(0xc4a13a2000, 0xc4c02cd640, 0x19, 0xc4c02cd601, 0x0, 0x0)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/iterator.go:103 +0x63
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/worker.export(0x12a177d, 0x6, 0xf81f, 0x0, 0x0)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/worker/export.go:322 +0xeb4
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/worker.handleExportForGroup(0x137e960, 0xc420038028, 0xc4963054e0, 0xc4963054e0)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/worker/export.go:407 +0x208
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/worker.handleExportForGroupOverNetwork(0x137e960, 0xc420038028, 0xc4963054e0, 0xc43ea04a00)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/worker/export.go:368 +0x356
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: github.com/dgraph-io/dgraph/worker.ExportOverNetwork.func1(0xf81f, 0xc42c81cea0, 0x137e960, 0xc420038028, 0xc400000001)
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/worker/export.go:476 +0x79
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: created by github.com/dgraph-io/dgraph/worker.ExportOverNetwork
Jul 8 05:00:06 prod-gametv-db dgraphserver[30173]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/worker/export.go:470 +0x2ba
Jul 8 05:00:17 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:17 server.go:116: Setting Badger option: default
Jul 8 05:00:17 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:17 server.go:131: Setting Badger table load option: mmap
Jul 8 05:00:17 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:17 server.go:143: Setting Badger value log load option: mmap
Jul 8 05:00:17 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:17 server.go:153: Opening postings Badger DB with options: {Dir:p ValueDir:p SyncWrites:true TableLoadingMode:2 ValueLogLoadingMode:2 NumVersionsToKeep:2147483647 MaxTableSize:67108864 LevelSizeMultiplier:10 MaxLevels:7 ValueThreshold:32 NumMemtables:5 NumLevelZeroTables:5 NumLevelZeroTablesStall:10 LevelOneSize:268435456 ValueLogFileSize:1073741824 ValueLogMaxEntries:1000000 NumCompactors:3 managedTxns:false DoNotCompact:false maxBatchCount:0 maxBatchSize:0 ReadOnly:false Truncate:false}
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 gRPC server started. Listening on port 9080
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 HTTP server started. Listening on port 8080
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 groups.go:77: Current Raft Id: 1
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 worker.go:89: Worker listening at address: [::]:7080
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 pool.go:108: == CONNECT ==> Setting localhost:5080
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 groups.go:104: Connected to group zero. Assigned group: 0
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 draft.go:150: Node ID: 1 with GroupID: 1
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 node.go:224: Found Snapshot, Metadata: {ConfState:{Nodes:[] Learners:[] XXX_unrecognized:[]} Index:8661 Term:5 XXX_unrecognized:[]}
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 node.go:235: Found hardstate: {Term:5 Vote:1 Commit:8671 XXX_unrecognized:[]}
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 node.go:244: Group 1 found 11 entries
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 draft.go:1018: Restarting node for group: 1
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 raft.go:639: INFO: 1 became follower at term 5
Jul 8 05:00:19 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:19 raft.go:354: INFO: newRaft 1 [peers: [], term: 5, commit: 8671, applied: 8661, lastindex: 8671, lastterm: 5]
Jul 8 05:00:21 prod-gametv-db dgraphserver[13934]: 2018/07/08 05:00:21 groups.go:494: Got address of a Zero server: localhost:5080
Jul 8 05:00:23 prod-gametv-db dgraphserver[13934]: panic: runtime error: slice bounds out of range
Jul 8 05:00:23 prod-gametv-db dgraphserver[13934]: goroutine 22707 [running]:
Jul 8 05:00:23 prod-gametv-db dgraphserver[13934]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*Arena).getKey(...)
Jul 8 05:00:23 prod-gametv-db dgraphserver[13934]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/arena.go:118
Jul 8 05:00:23 prod-gametv-db dgraphserver[13934]: github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl.(*node).key(...)
Jul 8 05:00:23 prod-gametv-db dgraphserver[13934]: #011/ext-go/1/src/github.com/dgraph-io/dgraph/vendor/github.com/dgraph-io/badger/skl/skl.go:143