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

Topology test fixes #7284

Merged
merged 7 commits into from
Jan 11, 2025
Merged

Topology test fixes #7284

merged 7 commits into from
Jan 11, 2025

Conversation

adamcfraser
Copy link
Collaborator

@adamcfraser adamcfraser commented Jan 10, 2025

Test logging enhancements:

  • verbose HLV logging in a few more places
  • turn on Sync and CRUD log keys for topology tests

Flaky test fixes:

  • Fix changes processing in blip test client to not request revs when version in changes message is already known to the client
  • Change StopPush in blipTestClient to synchronously wait for push processing to be stopped
  • rosmar XDCR: replicate _mou to target when it is not obsolete

@adamcfraser adamcfraser changed the title Topology test logging tweaks Topology test fixes Jan 11, 2025
@adamcfraser adamcfraser marked this pull request as ready for review January 11, 2025 02:08
@@ -1242,7 +1242,7 @@ func (db *DatabaseCollectionWithUser) PutExistingCurrentVersion(ctx context.Cont
}
} else {
if doc.HLV.isDominating(newDocHLV) {
base.DebugfCtx(ctx, base.KeyCRUD, "PutExistingCurrentVersion(%q): No new versions to add", base.UD(newDoc.ID))
base.DebugfCtx(ctx, base.KeyCRUD, "PutExistingCurrentVersion(%q): No new versions to add. existing: %#v new:%#v", base.UD(newDoc.ID), doc.HLV, newDocHLV)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should possibly be KeyVV to match above


// wait for push replication to stop running
require.EventuallyWithT(btc.TB(), func(c *assert.CollectT) {
require.True(c, btc.pushRunning.IsTrue() == false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
require.True(c, btc.pushRunning.IsTrue() == false)
assert.False(c, btc.pushRunning.IsTrue())

the way that assertion is written will actually fail immediately if btc.pushRunning.IsTrue() == true and it won't do a backoff.

@torcolvin torcolvin merged commit ff800b2 into release/anemone Jan 11, 2025
20 checks passed
@torcolvin torcolvin deleted the topology_test_logging branch January 11, 2025 16:58
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