Revert "make sure the getpage requests happens"

This reverts commit a62b2e3e76.
This commit is contained in:
Christian Schwarz
2024-06-12 21:11:43 +02:00
parent a62b2e3e76
commit e2d57fb61b
2 changed files with 2 additions and 14 deletions

View File

@@ -883,8 +883,8 @@ impl Timeline {
match cached_lsn.cmp(&lsn) {
Ordering::Less => {} // there might be WAL between cached_lsn and lsn, we need to check
Ordering::Equal => {
// MATERIALIZED_PAGE_CACHE_HIT_DIRECT.inc();
// return Ok(cached_img); // exact LSN match, return the image
MATERIALIZED_PAGE_CACHE_HIT_DIRECT.inc();
return Ok(cached_img); // exact LSN match, return the image
}
Ordering::Greater => {
unreachable!("the returned lsn should never be after the requested lsn")

View File

@@ -292,18 +292,6 @@ def test_vm_bit_clear_on_heap_lock_blackbox(neon_env_builder: NeonEnvBuilder):
# already truncated away.
#
# ERROR: could not access status of transaction 1027
# the select() below fails occassionally at get_impl="vectored" validation
env.pageserver.stop()
env.pageserver.start()
time.sleep(2)
env.pageserver.http_client().patch_tenant_config_client_side(tenant_id, {"test_vm_bit_debug_logging": True}, {})
endpoint.stop(mode="immediate")
endpoint.start()
pg_conn = endpoint.connect()
cur = pg_conn.cursor()
# cur.execute("select clear_buffer_cache()")
cur.execute("select xmin, xmax, * from vmtest_lock where id = 40000 for update")
tup = cur.fetchall()
log.info(f"tuple = {tup}")