Compare commits

...

3 Commits

Author SHA1 Message Date
Christian Schwarz
1bc5ae03d9 clippy 2025-07-24 13:47:41 +00:00
Christian Schwarz
0a353051ac run the test that was allegedly fixed by that check a 100 times 2025-07-24 12:08:30 +00:00
Christian Schwarz
e56c46c2f8 I think this check makes no sense 2025-07-24 12:08:00 +00:00
3 changed files with 2 additions and 6 deletions

View File

@@ -2193,7 +2193,7 @@ impl PageServerHandler {
//
// We may have older data available, but we make a best effort to detect this case and return an error,
// to distinguish a misbehaving client (asking for old LSN) from a storage issue (data missing at a legitimate LSN).
if request_lsn < **latest_gc_cutoff_lsn && !timeline.is_gc_blocked_by_lsn_lease_deadline() {
if request_lsn < **latest_gc_cutoff_lsn {
let gc_info = &timeline.gc_info.read().unwrap();
if !gc_info.lsn_covered_by_lease(request_lsn) {
return Err(

View File

@@ -2799,11 +2799,6 @@ impl Timeline {
.unwrap_or(self.conf.default_tenant_conf.lsn_lease_length_for_ts)
}
pub(crate) fn is_gc_blocked_by_lsn_lease_deadline(&self) -> bool {
let tenant_conf = self.tenant_conf.load();
tenant_conf.is_gc_blocked_by_lsn_lease_deadline()
}
pub(crate) fn get_lazy_slru_download(&self) -> bool {
let tenant_conf = self.tenant_conf.load();
tenant_conf

View File

@@ -124,6 +124,7 @@ def test_readonly_node(neon_simple_env: NeonEnv):
)
@pytest.mark.repeat(100)
def test_readonly_node_gc(neon_env_builder: NeonEnvBuilder):
"""
Test static endpoint is protected from GC by acquiring and renewing lsn leases.