Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Handle stats db conflicts
Since a timestamp is used as the document id, it's possible for e.g. multiple nodes to attempt to insert the same document, resulting in logged errors like the following: [error] 2022-04-05T21:00:35.302496Z node1@127.0.0.1 emulator -------- Error in process <0.588.159> on node 'node1@127.0.0.1' with exit value: {{nocatch,conflict},[{fabric,update_doc,3,[{file,"src/fabric.erl"},{line,332}]},{ioq_server,save_to_db,0,[{file,"src/ioq_server.erl"},{line,529}]}]} This catches cases of `error:conflict` and logs them at info level instead.
- Loading branch information