How to handle this errors?
rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection closed
When i load some data (addresses ca. 35mb in csv but the files from dgraph are ca 20x bigger) into dgraph, i experience many dropouts.
i run dgraph latest on win10
configuration like in the tour:
Run dgraphzero
docker run -it -p 5080:5080 -p 6080:6080 -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph --name dgraph dgraph/dgraph dgraph zero
In another terminal, now run dgraph
docker exec -it dgraph dgraph alpha --lru_mb 2048 --zero localhost:5080
And in another, run ratel (Dgraph UI)
docker exec -it dgraph dgraph-ratel
First error
go driver displayed error is:
rpc error: code = Unknown desc = Assigning IDs is only allowed on leader.
here are more logs:
I0406 11:14:25.475611 19 log.go:34] Got compaction priority: {level:0 score:1 dropPrefix:}
I0406 11:14:25.475749 19 log.go:34] Running for level: 0
I0406 11:14:33.392765 19 log.go:34] LOG Compact 0->1, del 6 tables, add 4 tables, took 7.915310339s
I0406 11:14:33.392863 19 log.go:34] Compaction for level: 0 DONE
I0406 11:15:06.652107 19 draft.go:374] Creating snapshot at index: 10066. ReadTs: 9141.
I0406 11:18:05.030276 19 log.go:34] Rolling up Created batch of size: 55 B in 64.567µs.
I0406 11:18:07.536310 19 log.go:34] Rolling up Created batch of size: 4.3 MB in 2.11884214s.
I0406 11:18:07.536583 19 log.go:34] Rolling up Time elapsed: 02s, bytes sent: 4.3 MB, speed: 2.1 MB/sec
I0406 11:18:09.650416 19 log.go:34] Rolling up Created batch of size: 4.3 MB in 2.110223791s.
I0406 11:18:09.650456 19 log.go:34] Rolling up Time elapsed: 04s, bytes sent: 8.6 MB, speed: 2.1 MB/sec
I0406 11:18:15.051080 19 log.go:34] Rolling up Created batch of size: 8.6 MB in 5.380655874s.
I0406 11:18:15.051976 19 log.go:34] Rolling up Time elapsed: 10s, bytes sent: 17 MB, speed: 1.7 MB/sec
I0406 11:18:22.223741 19 log.go:34] Rolling up Created batch of size: 13 MB in 7.133612826s.
I0406 11:18:22.227408 19 log.go:34] Rolling up Time elapsed: 17s, bytes sent: 30 MB, speed: 1.8 MB/sec
I0406 11:18:50.761656 19 log.go:34] Rolling up Created batch of size: 51 MB in 28.382583549s.
I0406 11:18:50.765268 19 log.go:34] Rolling up Time elapsed: 45s, bytes sent: 81 MB, speed: 1.8 MB/sec
I0406 11:19:13.585314 19 log.go:34] Rolling up Created batch of size: 125 MB in 22.374038505s.
I0406 11:19:14.752045 19 log.go:34] Rolling up Created batch of size: 8.6 MB in 1.156978495s.
I0406 11:19:14.752608 19 log.go:34] Rolling up Sent 1910271 keys
I0406 11:19:14.786677 19 draft.go:1040] Rolled up 1910271 keys. Done
I0406 11:19:14.786780 19 draft.go:415] List rollup at Ts 9141: OK.
I0406 11:19:14.840250 19 predicate_move.go:191] Was instructed to delete tablet: Event
I0406 11:19:14.844316 19 index.go:1000] Dropping predicate: [Event]
I0406 11:19:14.848553 19 log.go:34] Writes flushed. Stopping compactions now…
I0406 11:19:14.967363 19 log.go:34] Got compaction priority: {level:0 score:1.74 dropPrefix:[0 0 5 69 118 101 110 116]}
I0406 11:19:14.967427 19 log.go:34] Running for level: 0
I0406 11:19:22.653368 19 log.go:34] LOG Compact 0->1, del 9 tables, add 3 tables, took 7.683243624s
I0406 11:19:22.657374 19 log.go:34] Compaction for level: 0 DONE
I0406 11:19:24.549859 19 log.go:34] LOG Compact 1->1, del 1 tables, add 1 tables, took 1.889192783s
I0406 11:19:24.550479 19 log.go:34] DropPrefix done
I0406 11:19:24.550860 19 log.go:34] Resuming writes
I0406 11:19:24.553204 19 schema.go:79] Deleting schema for predicate: [Event]
I0406 11:19:24.569747 19 predicate_move.go:191] Was instructed to delete tablet: User
I0406 11:19:24.577928 19 index.go:1000] Dropping predicate: [User]
I0406 11:19:24.577986 19 log.go:34] Writes flushed. Stopping compactions now…
I0406 11:19:24.686624 19 log.go:34] Got compaction priority: {level:0 score:1.74 dropPrefix:[0 0 4 85 115 101 114]}
I0406 11:19:24.687525 19 log.go:34] Running for level: 0
W0406 11:19:24.820105 19 draft.go:1071] While sending membership to Zero. Error: rpc error: code = DeadlineExceeded desc = context deadline exceeded
I0406 11:19:26.202541 19 log.go:34] LOG Compact 0->1, del 2 tables, add 1 tables, took 1.509975941s
I0406 11:19:26.204846 19 log.go:34] Compaction for level: 0 DONE
I0406 11:19:26.205370 19 log.go:34] DropPrefix done
I0406 11:19:26.206016 19 log.go:34] Resuming writes
I0406 11:19:26.208229 19 schema.go:79] Deleting schema for predicate: [User]
I0406 11:20:05.042530 19 draft.go:1291] Skipping snapshot at index: 10105. Insufficient discard entries: 1. MinPendingStartTs: 9176
I0406 11:21:05.049522 19 draft.go:1291] Skipping snapshot at index: 10105. Insufficient discard entries: 1. MinPendingStartTs: 9176
I0406 11:21:05.053832 19 draft.go:1132] Found 1 old transactions. Acting to abort them.
I0406 11:21:05.130042 19 draft.go:1093] TryAbort 1 txns with start ts. Error:
I0406 11:21:05.131167 19 draft.go:1116] TryAbort selectively proposing only aborted txns: txns:<start_ts:9176 >
I0406 11:21:05.137876 19 draft.go:1135] Done abortOldTransactions for 1 txns. Error:
Then i get the following errors:
rpc error: code = Unavailable desc = transport is closing
then alpha is down - after starting it up again i get the following error:
code = Unknown desc = Pending transactions found. Please retry operation
i need to shut down alpha manually and restart it, and then the pending transaction err is gone.
here are the logs from alpha:
W0406 12:26:19.746915 280 draft.go:958] Raft.Ready took too long to process: Timer Total: 626ms. Breakdown: [{disk 615ms} {proposals 6ms} {sync 0s} {advance 0s}] Num entries: 1. MustSync: true
W0406 12:26:21.189954 280 draft.go:958] Raft.Ready took too long to process: Timer Total: 885ms. Breakdown: [{disk 837ms} {proposals 41ms} {sync 0s} {advance 0s}] Num entries: 1. MustSync: true
W0406 12:26:33.860275 280 draft.go:958] Raft.Ready took too long to process: Timer Total: 2.417s. Breakdown: [{disk 1.822s} {proposals 337ms} {advance 16ms} {sync 13ms}] Num entries: 1. MustSync: true
W0406 12:26:43.396369 280 draft.go:958] Raft.Ready took too long to process: Timer Total: 2.004s. Breakdown: [{disk 1.829s} {proposals 13ms} {sync 0s} {advance 0s}] Num entries: 1. MustSync: true
W0406 12:26:45.206754 280 draft.go:958] Raft.Ready took too long to process: Timer Total: 1.077s. Breakdown: [{disk 1.004s} {proposals 32ms} {advance 18ms} {sync 0s}] Num entries: 1. MustSync: true
I0406 12:26:54.120364 280 groups.go:872] Zero leadership changed. Renewing oracle delta stream.
I0406 12:27:02.794360 280 groups.go:808] Leader idx=0x1 of group=1 is connecting to Zero for txn updates
I0406 12:27:02.803518 280 groups.go:817] Got Zero leader: localhost:5080
E0406 12:27:02.795405 280 groups.go:848] Error in oracle delta stream. Error: rpc error: code = Canceled desc = context canceled