From 046df3803d51c576b2cd4a1a88d011dacc9dc499 Mon Sep 17 00:00:00 2001 From: Siddharth Manoj Date: Thu, 30 Nov 2023 03:55:58 -0500 Subject: [PATCH] intentionally fail test to verify --- baseplate/sidecars/live_data_watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/baseplate/sidecars/live_data_watcher.py b/baseplate/sidecars/live_data_watcher.py index 376c78694..7d7c2a853 100644 --- a/baseplate/sidecars/live_data_watcher.py +++ b/baseplate/sidecars/live_data_watcher.py @@ -127,12 +127,12 @@ def _load_from_s3(data: bytes) -> bytes: # We can't assume that every caller of this method will be using prefix sharding on # their S3 objects. num_file_shards = loader_config.get("num_file_shards", 1) - + logger.error(num_file_shards) # If the num_file_shards key is present, we may have multiple copies of the same manifest # uploaded so fetch one randomly using a randomly generated prefix. # Generate a random number from 0 to num_file_shards exclusive to use as prefix. file_key_prefix = random.randrange(num_file_shards) - + logger.error(file_key_prefix) # If 0 is generated, don’t append a prefix, fetch the file with no prefix # since we always upload one file without a prefix. if file_key_prefix == 0: