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

Add membership changes to downgrade tests #16457

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

serathius
Copy link
Member

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
if triggerSnapshot {
t.Logf("Generating snapshot")
generateSnapshot(t, snapshotCount, epc)
generateSnapshot(t, snapshotCount, cc)
verifySnapshot(t, epc)
Copy link
Member

Choose a reason for hiding this comment

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

Suggest to verify the snapshot using verifySnapshotMembers.

FYI. #16376

and also #16458

Copy link
Member Author

@serathius serathius Aug 22, 2023

Choose a reason for hiding this comment

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

Don't think this is needed. This is a downgrade/upgrade test, so from downgrade perspective we just need to confirm that members don't change during downgrade/upgrade procedure. Checking exact list of members is not in scope of the test. Aka, I would treat members as black box instead of whitebox.

@serathius serathius merged commit 5a54fe6 into etcd-io:main Aug 22, 2023
27 checks passed
@geetasg
Copy link

geetasg commented Aug 22, 2023

lgtm. investigating additional test cases for downgrade

@geetasg
Copy link

geetasg commented Aug 22, 2023

Considering adding following scenarios -

  • TestV2DeprecationSnapshotMatches verifies changes to membership are captured correctly - compares membership in a snapshot created by 3.5 against that created by 3.6
  • Trying to find a way to trigger membership changes while snapshot is in progress

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

Successfully merging this pull request may close these issues.

3 participants