deflake: test_live_reconfig_get_evictions_low_residence_... (#5926)

- disable extra tenant
- disable compaction which could try to repartition while we assert

Split from #5108.
This commit is contained in:
Joonas Koivunen
2023-11-27 15:20:54 +02:00
committed by GitHub
parent a76a503b8b
commit 683ec2417c

View File

@@ -336,10 +336,15 @@ def test_live_reconfig_get_evictions_low_residence_duration_metric_threshold(
):
neon_env_builder.enable_pageserver_remote_storage(RemoteStorageKind.LOCAL_FS)
env = neon_env_builder.init_start()
env = neon_env_builder.init_start(
initial_tenant_conf={
# disable compaction so that it will not download the layer for repartitioning
"compaction_period": "0s"
}
)
assert isinstance(env.pageserver_remote_storage, LocalFsStorage)
(tenant_id, timeline_id) = env.neon_cli.create_tenant()
(tenant_id, timeline_id) = env.initial_tenant, env.initial_timeline
ps_http = env.pageserver.http_client()
def get_metric():