Skip to content

Commit

Permalink
Double the size of the data processed by two tests
Browse files Browse the repository at this point in the history
These two tests were broken by our PR, probably
due to the changes in when new layer files are cut.
Therefore, just do more writes to still create new
layer files.
  • Loading branch information
arpad-m committed Aug 16, 2023
1 parent d4132a6 commit 71f2628
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_runner/regress/test_remote_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def overwrite_data_and_wait_for_it_to_arrive_at_pageserver(data):
f"""
INSERT INTO foo (id, val)
SELECT g, '{data}'
FROM generate_series(1, 10000) g
FROM generate_series(1, 20000) g
ON CONFLICT (id) DO UPDATE
SET val = EXCLUDED.val
""",
Expand Down Expand Up @@ -370,7 +370,7 @@ def churn_while_failpoints_active(result):
log.info("restarting postgres to validate")
endpoint = env.endpoints.create_start("main", tenant_id=tenant_id)
with endpoint.cursor() as cur:
assert query_scalar(cur, "SELECT COUNT(*) FROM foo WHERE val = 'd'") == 10000
assert query_scalar(cur, "SELECT COUNT(*) FROM foo WHERE val = 'd'") == 20000


@pytest.mark.parametrize("remote_storage_kind", [RemoteStorageKind.LOCAL_FS])
Expand Down Expand Up @@ -418,7 +418,7 @@ def overwrite_data_and_wait_for_it_to_arrive_at_pageserver(data):
f"""
INSERT INTO foo (id, val)
SELECT g, '{data}'
FROM generate_series(1, 10000) g
FROM generate_series(1, 20000) g
ON CONFLICT (id) DO UPDATE
SET val = EXCLUDED.val
""",
Expand Down Expand Up @@ -509,7 +509,7 @@ def churn(data_pass1, data_pass2):
log.info("restarting postgres to validate")
endpoint = env.endpoints.create_start("main", tenant_id=tenant_id)
with endpoint.cursor() as cur:
assert query_scalar(cur, "SELECT COUNT(*) FROM foo WHERE val = 'd'") == 10000
assert query_scalar(cur, "SELECT COUNT(*) FROM foo WHERE val = 'd'") == 20000

# ensure that we updated the calls_started download metric
fetch_calls_started()
Expand Down

0 comments on commit 71f2628

Please sign in to comment.