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
F3363698: D5073.diff
Mon, Nov 25, 3:04 AM
Unknown Object (File)
Fri, Nov 22, 12:05 PM
Unknown Object (File)
Wed, Nov 20, 8:21 PM
Unknown Object (File)
Thu, Nov 14, 2:11 AM
Unknown Object (File)
Sun, Nov 10, 6:57 AM
Unknown Object (File)
Sun, Oct 27, 8:13 PM
Unknown Object (File)
Sun, Oct 27, 8:13 PM
Unknown Object (File)
Sun, Oct 27, 8:13 PM

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
No Lint Coverage
Unit
No Test Coverage

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