I have a strange problem with the dgraph for some time
I run 1 zero and 1 alpha and the dgraph starts working
a few hours later , Alpha begins a process that cannot be completed
I get this error in it:
draft.go:1195] Found 1 old transactions. Acting to abort them.
draft.go:1156] TryAbort 1 txns with start ts. Error: <nil>
draft.go:1172] TryAbort: No aborts found. Quitting.
draft.go:1198] Done abortOldTransactions for 1 txns. Error: <nil>
log.go:34] Got compaction priority: {level:0 score:1 dropPrefix:[]}
log.go:34] Running for level: 0
log.go:34] LOG Compact 0->1, del 6 tables, add 1 tables, took 830.788054ms
log.go:34] Compaction for level: 0 DONE
draft.go:1195] Found 1 old transactions. Acting to abort them.
draft.go:1156] TryAbort 1 txns with start ts. Error: <nil>
draft.go:1172] TryAbort: No aborts found. Quitting.
draft.go:1198] Done abortOldTransactions for 1 txns. Error: <nil>
log.go:34] Got compaction priority: {level:0 score:1 dropPrefix:[]}
log.go:34] Running for level: 0
I waited for hours but it still didn’t work. I stopped and restarted Alpha, but it still continues to process
I stop the services and delete the Alpha and Zero folder and its data and import the export I got and the problem is fixed, but a few hours later the same problem is repeated again.
I have used different versions, but the same error is repeated
versions :
1.2.3
1.2.6
2.03.3
20.03.6
There’s no issue in your logs. You can ignore those processes. The abort task is a background task that will always run. Besides this, are you getting something else?
But are you using docker? bare metal? k8s? what are the specifications of those machines?
If you don’t wanna have issues with Dgraph day to day administration you can use the hosted service Slash https://dgraph.io/slash-graphql - it can forward the DQL GRPC service for you.