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
Unknown Object (File)
Tue, Dec 24, 7:04 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:38 AM
Unknown Object (File)
Sat, Dec 14, 6:37 AM
Unknown Object (File)
Sat, Dec 14, 6:31 AM
Unknown Object (File)
Mon, Dec 9, 8:58 PM
Unknown Object (File)
Thu, Dec 5, 12:42 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