cirruslabs / orchard

Orchestrator for running Tart Virtual Machines on a cluster of Apple Silicon devices
Other
192 stars 15 forks source link

Retry DB transactions on badger.ErrConflict #114

Closed edigaryev closed 1 year ago

edigaryev commented 1 year ago

To fix the tests in https://cirrus-ci.com/task/5344327489028096 failing because of https://github.com/cirruslabs/orchard/pull/114#issuecomment-1678666175.

Also log the causes of HTTP 500 errors.

edigaryev commented 1 year ago

Found the issue: Transaction Conflict. Please retry during POST to /v1/workers.

This is probably caused by a concurrent PUT from an Orchard Worker to /v1/workers/microsun.local.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

CLAassistant commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.