Update test_runner/regress/test_gc_old_layers.py

Co-authored-by: Joonas Koivunen <joonas@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2023-03-09 18:39:39 +02:00
parent f838a11514
commit 4618739cb3

View File

@@ -3,15 +3,17 @@ from fixtures.log_helper import log
from fixtures.neon_fixtures import NeonEnvBuilder
#
# Test that GC is able to collect all old layers even if them are forming
# "stairs" and there are not three delta layers since last image layer.
# Information about image layers needed to collect old layers should
# be propagated by GC to compaction task which should take in in account
# when make a decision which new image layers needs to be created
#
@pytest.mark.timeout(10000)
def test_gc_old_layers(neon_env_builder: NeonEnvBuilder):
"""
Test that GC is able to collect all old layers even if them are forming
"stairs" and there are not three delta layers since last image layer.
Information about image layers needed to collect old layers should
be propagated by GC to compaction task which should take in in account
when make a decision which new image layers needs to be created.
"""
env = neon_env_builder.init_start()
client = env.pageserver.http_client()