Page MenuHomePhabricator

[services] Rust Integration - Backup - c++ - Use uuid instead of current timestamp when generating log id
ClosedPublic

Authored by karol on Sep 6 2022, 7:23 AM.
Tags
None
Referenced Files
F1746524: D5073.diff
Mon, May 13, 2:57 PM
Unknown Object (File)
Thu, May 9, 5:22 PM
Unknown Object (File)
Thu, May 9, 5:21 PM
Unknown Object (File)
Thu, May 9, 5:21 PM
Unknown Object (File)
Thu, May 9, 5:21 PM
Unknown Object (File)
Thu, May 2, 11:14 AM
Unknown Object (File)
Thu, May 2, 11:14 AM
Unknown Object (File)
Thu, May 2, 11:14 AM

Details

Summary

Depends on D5072

I used to have duplicated log ids which lead to errors. This was because they could be sent in such a small interval that they'd have the same timestamp in their IDs. Using UUID solved this problem.

Test Plan

services build

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It is an improvement but we should handle collisions gracefully by generating a new id.

This revision is now accepted and ready to land.Sep 9 2022, 5:49 AM
karol edited the summary of this revision. (Show Details)

rebase