[BUG] ApiServerCommunicationError
appears when SQLITE db is busy when serving concurrent clients (collectors)
#347
Labels
bug
Something isn't working
Describe the bug
When multiple collectors initiate a connection to the server at the same time, the server returns
HTTP 500
. The logs contain hints that the database lock is the root cause, but clients are not able to recover/retry.Expected behavior
Multiple collectors initiate a connection to the server at the same time, and are able to complete their upload even if the request must be delayed and/or retried.
Example: 2 clients make the same request at the same time. One gets served (database locked), and the other gets a
HTTP 503
with aRetry-After: rand(2,30)
header.Log Files
Client/Collector:
Server:
more logs here: #220 (comment)
The text was updated successfully, but these errors were encountered: