Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flakiness of test_timeline_copy. #9061

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arssher
Copy link
Contributor

@arssher arssher commented Sep 19, 2024

Timeline might be not initialized when timeline_start_lsn is queried. Spotted by CI.

Timeline might be not initialized when timeline_start_lsn is
queried. Spotted by CI.
Comment on lines +170 to +173
assert s > Lsn(0)

wait_until(30, 1, timeline_start_lsn_non_zero)
return self.timeline_status(tenant_id, timeline_id).timeline_start_lsn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert s > Lsn(0)
wait_until(30, 1, timeline_start_lsn_non_zero)
return self.timeline_status(tenant_id, timeline_id).timeline_start_lsn
assert s > Lsn(0)
wait_until(30, 1, timeline_start_lsn_non_zero)
return self.timeline_status(tenant_id, timeline_id).timeline_start_lsn
Suggested change
assert s > Lsn(0)
wait_until(30, 1, timeline_start_lsn_non_zero)
return self.timeline_status(tenant_id, timeline_id).timeline_start_lsn
assert s > Lsn(0)
return s
return wait_until(30, 1, timeline_start_lsn_non_zero)

Copy link

4968 tests run: 4804 passed, 0 failed, 164 skipped (full report)


Flaky tests (4)

Postgres 17

Postgres 16

Code coverage* (full report)

  • functions: 31.9% (7419 of 23292 functions)
  • lines: 49.8% (59601 of 119704 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
9f3a369 at 2024-09-19T15:05:36.571Z :recycle:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants