mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-04 12:02:55 +00:00
test_runner: ignore .___temp files in evict_random_layers (#11509)
## Problem `test_location_conf_churn` often fails with `neither image nor delta layer`, but doesn't say what the file actually is. However, past local failures have indicated that it might be `.___temp` files. Touches https://github.com/neondatabase/neon/issues/11348. ## Summary of changes Ignore `.___temp` files when evicting local layers, and include the file name in the error message.
This commit is contained in:
@@ -105,7 +105,7 @@ def parse_layer_file_name(file_name: str) -> LayerName:
|
||||
except InvalidFileName:
|
||||
pass
|
||||
|
||||
raise InvalidFileName("neither image nor delta layer")
|
||||
raise InvalidFileName(f"neither image nor delta layer: {file_name}")
|
||||
|
||||
|
||||
def is_future_layer(layer_file_name: LayerName, disk_consistent_lsn: Lsn):
|
||||
|
||||
@@ -61,7 +61,7 @@ def evict_random_layers(
|
||||
)
|
||||
client = pageserver.http_client()
|
||||
for layer in initial_local_layers:
|
||||
if "ephemeral" in layer.name or "temp_download" in layer.name:
|
||||
if "ephemeral" in layer.name or "temp_download" in layer.name or ".___temp" in layer.name:
|
||||
continue
|
||||
|
||||
layer_name = parse_layer_file_name(layer.name)
|
||||
|
||||
Reference in New Issue
Block a user