Commit 596363a4 authored by Dan Notestein's avatar Dan Notestein
Browse files

Use nanosecond-based requestid to avoid collisions in convert operations

The previous implementation used int(time.time()) which returns seconds,
causing requestid collisions when multiple convert operations are created
within the same second. This caused flaky test failures with error:
"could not insert object, uniqueness constraint was violated"

Change to time.time_ns() % (2**32) which provides nanosecond resolution
while staying within uint32_t bounds, effectively eliminating collisions.
parent 8e2871a4
Loading
Loading
Loading
Loading