mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 08:52:56 +00:00
this should theoretically make the situation reproducable by first:
0. configure local pageserver to never run gc or compaction, allow
access to tenant via local storage
1. `curl -X POST localhost:9898/v1/tenant/$tid/attach`
2. `curl -X PUT --data "{ \"tenant_id\": \"$tid\", \"gc_horizon\": 87772208 }" --header 'content-type: application/json' localhost:9898/v1/tenant/config`
3. `curl -X POST localhost:9898/add_forced_now?now=2023-01-24T04:58:17.319972Z`
4. `curl -X POST localhost:9898/add_forced_now?now=2023-01-24T04:59:32.436Z`
5. `curl -X PUT --data '{}' --header 'content-type: application/json' localhost:9898/v1/tenant/$tid/timeline/$ttid/do_gc`
- this now uses now from step 3
6. `curl localhost:9898/v1/tenant/$tid/size`
- this now uses now from step 4
this comes quite close, but doesn't end up downloading the same file.