From d96e9d4f11c56b6d15917843e051888419884ac5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 19 Nov 2024 21:39:02 -0500 Subject: [PATCH] Ignore non-`.parquet` (suffixed) paths for now during tsdb fs-indexing --- piker/storage/nativedb.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/piker/storage/nativedb.py b/piker/storage/nativedb.py index bc7f10e3..941b519f 100644 --- a/piker/storage/nativedb.py +++ b/piker/storage/nativedb.py @@ -161,7 +161,12 @@ class NativeStorageClient: def index_files(self): for path in self._datadir.iterdir(): - if path.name in {'borked', 'expired',}: + if ( + path.name in {'borked', 'expired',} + or + '.parquet' not in str(path) + ): + # ignore all non-apache files (for now) continue key: str = path.name.rstrip('.parquet')