From 7b119236e7371ade495c6cfc93a5f4720db024f2 Mon Sep 17 00:00:00 2001 From: Blaise Bruer Date: Fri, 13 Dec 2024 11:55:47 -0600 Subject: [PATCH] Minor fix to BEP key encoding LifetimeEvents and BuildEvents were racing to who would get the entry first. This partitions the data. --- nativelink-service/src/bep_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nativelink-service/src/bep_server.rs b/nativelink-service/src/bep_server.rs index 240506a71..77f29b4b9 100644 --- a/nativelink-service/src/bep_server.rs +++ b/nativelink-service/src/bep_server.rs @@ -82,7 +82,7 @@ impl BepServer { let sequence_number = build_event.sequence_number; let store_key = StoreKey::Str(Cow::Owned(format!( - "BepEvent:{}:{}:{}", + "BepEvent:le:{}:{}:{}", &stream_id.build_id, &stream_id.invocation_id, sequence_number, ))); @@ -140,7 +140,7 @@ impl BepServer { store .update_oneshot( StoreKey::Str(Cow::Owned(format!( - "BepEvent:{}:{}:{}", + "BepEvent:be:{}:{}:{}", &stream_id.build_id, &stream_id.invocation_id, sequence_number, ))), buf.freeze(),