Ignore non-`.parquet` (suffixed) paths for now during tsdb fs-indexing

Tyler Goodlet 2024-11-19 21:39:02 -05:00 committed by Nelson Torres
parent b915a10da4
commit 3f36be1010
1 changed files with 6 additions and 1 deletions

View File

@ -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')