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

CBG-2579: TestReplicatorCheckpointOnStop test fix #6460

Merged
merged 5 commits into from
Sep 26, 2023
Merged

CBG-2579: TestReplicatorCheckpointOnStop test fix #6460

merged 5 commits into from
Sep 26, 2023

Conversation

gregns1
Copy link
Contributor

@gregns1 gregns1 commented Sep 25, 2023

CBG-2579

Not able to repro the failiure locally.

But the first thing that jumps out is that the test fails to fetch the persisted checkpoint, suggesting its simply not there. A comment in the test previously suggested setting the checkpoint interval to 0 is disabling the interval. This is incorrect, it will default to the default value in this context which is 5 seconds. See -> https://github.com/couchbase/sync_gateway/blob/ac740e85e06f965fff11a6f7972e8c8c56d6834b/db/active_replicator_common.go#L93C3-L93C3 I have now replaced this with reduceTestCheckpointInterval to increase the checkpoint frequency and 50 seconds. Hopefully will stop the test from flaking.

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Integration Tests

…suggested disabling the checkpoint interval which is not what the test is doing
@gregns1 gregns1 requested a review from bbrks September 25, 2023 12:35
rest/replicatortest/replicator_test.go Outdated Show resolved Hide resolved
@gregns1 gregns1 assigned gregns1 and unassigned bbrks Sep 26, 2023
@gregns1 gregns1 merged commit 408b47e into master Sep 26, 2023
@gregns1 gregns1 deleted the CBG-2579 branch September 26, 2023 11:34
bbrks pushed a commit that referenced this pull request Mar 28, 2024
* CBG-2579: update to actually reduce the checkpoint interval. Comment suggested disabling the checkpoint interval which is not what the test is doing

* updates to increase checkpoint interval

* temp enable trace loging

* updates to add trace logging to enable us to debug further

* fix comment
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