I am running Dgraph 1.0.5 in a cluster of 5, replication set to 3, with one dgraphzero. Twice now, I have seen my responses hang when calling dgraph, and my dgraph02 machine dies (same size as every other machine) The logs before the error were similar both times:
First time:
Jun 05 19:00:21 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:00:21 groups.go:356: Serving tablet for: z
Jun 05 19:00:21 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:00:21 groups.go:356: Serving tablet for: z
Jun 05 19:00:21 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:00:21 groups.go:356: Serving tablet for: EVENT_externalId
Jun 05 19:00:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:00:33 draft.go:865: Writing snapshot at index: 2208590, applied mark: 2210482
Jun 05 19:01:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:01:33 draft.go:865: Writing snapshot at index: 2215465, applied mark: 2219335
Jun 05 19:02:03 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:02:03 index.go:937: Dropping predicate: [EVENT_id]
Jun 05 19:02:03 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:02:03 draft.go:865: Writing snapshot at index: 2217694, applied mark: 2223958
Jun 05 19:02:08 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:02:08 schema.go:63: Deleting schema for predicate: [EVENT_id]
Jun 05 19:02:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:02:33 draft.go:865: Writing snapshot at index: 2225987, applied mark: 2229784
Jun 05 19:03:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:03:33 draft.go:865: Writing snapshot at index: 2238177, applied mark: 2238563
Jun 05 19:04:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:04:33 draft.go:865: Writing snapshot at index: 2242721, applied mark: 2247884
Jun 05 19:05:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:05:33 draft.go:865: Writing snapshot at index: 2254370, applied mark: 2257943
Jun 05 19:06:03 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:06:03 draft.go:865: Writing snapshot at index: 2261189, applied mark: 2263826
Jun 05 19:07:03 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:07:03 draft.go:865: Writing snapshot at index: 2264801, applied mark: 2274094
Jun 05 19:07:33 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:07:33 draft.go:865: Writing snapshot at index: 2275280, applied mark: 2278525
Jun 05 19:08:03 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: 2018/06/05 19:08:03 draft.go:865: Writing snapshot at index: 2277740, applied mark: 2285825
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: panic: runtime error: invalid memory address or nil pointer dereference
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x10125b8]
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: goroutine 23306549 [running]:
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/posting.(*List).Value(0x0, 0x4da1b8, 0x0, 0x0, 0x0, 0x0, 0x0)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/posting/list.go:935 +0x58
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/worker.handleCompareFunction.func1(0x4aa3b, 0x0, 0xc4c061a5b0)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:911 +0x31f
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/algo.ApplyFilter(0xc49fc12b00, 0xc50d58d838)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/algo/uidlist.go:24 +0xb3
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/worker.handleCompareFunction(0x1a821e0, 0xc4a87f42a0, 0xc4777c4600, 0x1, 0xc494fbad10, 0xc4afbba000, 0x4da1b8, 0x0)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:888 +0x4d2
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/worker.helpProcessTask(0x1a821e0, 0xc4a87f42a0, 0xc4777c4600, 0x1, 0x0, 0x0, 0x139b2d8)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:715 +0x429
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/worker.processTask(0x1a821e0, 0xc4a87f42a0, 0xc4777c4600, 0x1, 0xc4604be700, 0xc4777c4600, 0xc46886cb48)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:626 +0x1be
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/worker.ProcessTaskOverNetwork(0x1a821e0, 0xc4a87f42a0, 0xc4777c4600, 0x0, 0xffffffffffffffff, 0xc42002d400)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:149 +0x546
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: github.com/dgraph-io/dgraph/query.ProcessGraph(0x1a821e0, 0xc4a87f42a0, 0xc4bf386000, 0x0, 0xc4b3487bc0)
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/query/query.go:1885 +0x1cbd
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: created by github.com/dgraph-io/dgraph/query.(*QueryRequest).ProcessQuery
Jun 05 19:08:26 dgraph-sigstr-02.c.charlotte-161616.internal docker[5822]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/query/query.go:2518 +0x964
Second Time:
2018/06/05 20:10:24 draft.go:845: Couldn't take snapshot, txn watermark: [2462749], applied watermark: [2479024]
Jun 05 20:10:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:10:54 draft.go:865: Writing snapshot at index: 2474870, applied mark: 2484122
Jun 05 20:11:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:11:24 draft.go:865: Writing snapshot at index: 2489341, applied mark: 2489673
Jun 05 20:12:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:12:24 draft.go:865: Writing snapshot at index: 2501377, applied mark: 2501399
Jun 05 20:12:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:12:54 draft.go:865: Writing snapshot at index: 2502262, applied mark: 2504029
Jun 05 20:13:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:13:24 draft.go:865: Writing snapshot at index: 2506531, applied mark: 2506543
Jun 05 20:13:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:13:54 draft.go:865: Writing snapshot at index: 2509138, applied mark: 2509178
Jun 05 20:14:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:14:24 draft.go:865: Writing snapshot at index: 2510225, applied mark: 2516378
Jun 05 20:15:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:15:24 draft.go:865: Writing snapshot at index: 2513595, applied mark: 2520166
Jun 05 20:15:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:15:54 draft.go:865: Writing snapshot at index: 2519810, applied mark: 2522126
Jun 05 20:16:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:16:24 draft.go:865: Writing snapshot at index: 2525757, applied mark: 2525956
Jun 05 20:18:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:18:54 index.go:937: Dropping predicate: [PROFILE_id]
Jun 05 20:18:56 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:18:56 schema.go:63: Deleting schema for predicate: [PROFILE_id]
Jun 05 20:19:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:19:54 draft.go:865: Writing snapshot at index: 2535073, applied mark: 2535083
Jun 05 20:20:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:20:24 draft.go:865: Writing snapshot at index: 2536331, applied mark: 2536342
Jun 05 20:20:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:20:54 draft.go:865: Writing snapshot at index: 2537539, applied mark: 2537549
Jun 05 20:21:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:21:24 draft.go:865: Writing snapshot at index: 2537776, applied mark: 2538640
Jun 05 20:22:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:22:24 draft.go:865: Writing snapshot at index: 2541897, applied mark: 2541914
Jun 05 20:22:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:22:54 draft.go:865: Writing snapshot at index: 2544234, applied mark: 2544252
Jun 05 20:23:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:23:24 draft.go:865: Writing snapshot at index: 2545097, applied mark: 2546227
Jun 05 20:24:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:24:24 draft.go:865: Writing snapshot at index: 2549771, applied mark: 2549781
Jun 05 20:25:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:25:24 draft.go:865: Writing snapshot at index: 2549773, applied mark: 2549854
Jun 05 20:26:24 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:26:24 draft.go:865: Writing snapshot at index: 2549849, applied mark: 2549859
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: 2018/06/05 20:26:54 draft.go:865: Writing snapshot at index: 2550765, applied mark: 2550811
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: panic: runtime error: invalid memory address or nil pointer dereference
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x10125b8]
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: goroutine 37578642 [running]:
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/posting.(*List).Value(0x0, 0x568d32, 0x0, 0x0, 0x0, 0x0, 0x0)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/posting/list.go:935 +0x58
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/worker.handleCompareFunction.func1(0x4aa3b, 0x0, 0xc43ac359f0)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:911 +0x31f
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/algo.ApplyFilter(0xc42c1643c0, 0xc4a73b9838)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/algo/uidlist.go:24 +0xb3
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/worker.handleCompareFunction(0x1a821e0, 0xc48fa2e1b0, 0xc4924b6d00, 0x1, 0xc4683d8210, 0xc485ebcc60, 0x568d32, 0x0)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:888 +0x4d2
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/worker.helpProcessTask(0x1a821e0, 0xc48fa2e1b0, 0xc4924b6d00, 0x1, 0x0, 0x0, 0x139b2d8)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:715 +0x429
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/worker.processTask(0x1a821e0, 0xc48fa2e1b0, 0xc4924b6d00, 0x1, 0xc42b12a200, 0xc4924b6d00, 0xc549e64b48)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:626 +0x1be
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/worker.ProcessTaskOverNetwork(0x1a821e0, 0xc48fa2e1b0, 0xc4924b6d00, 0x0, 0xffffffffffffffff, 0x8ce846)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/worker/task.go:149 +0x546
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: github.com/dgraph-io/dgraph/query.ProcessGraph(0x1a821e0, 0xc48fa2e1b0, 0xc4d7c84840, 0x0, 0xc43f4929c0)
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/query/query.go:1885 +0x1cbd
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: created by github.com/dgraph-io/dgraph/query.(*QueryRequest).ProcessQuery
Jun 05 20:26:54 dgraph-sigstr-02.c.charlotte-161616.internal docker[8052]: /home/travis/gopath/src/github.com/dgraph-io/dgraph/query/query.go:2518 +0x964