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-3963 wait for principal doc readiness on resync #6864

Merged
merged 8 commits into from
Jun 3, 2024
Merged

Conversation

torcolvin
Copy link
Collaborator

@torcolvin torcolvin commented Jun 3, 2024

  • pass errors through invalidating principal cache
  • mark resync as a failure

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

torcolvin added 7 commits June 3, 2024 16:01
- change indextest to drop all indexes including primary index and use
  dcp purge
- pass errors through invalidating principal cache
- mark resync as a failure
@@ -189,16 +190,22 @@ func (r *ResyncManagerDCP) Run(ctx context.Context, options map[string]interface
return err
}

if (regenerateSequences && resyncCollections == nil) || r.DocsChanged.Value() > 0 {
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
if (regenerateSequences && resyncCollections == nil) || r.DocsChanged.Value() > 0 {
// resync may run before async index initialization is complete, so ensure indexes are ready before querying principals
if (regenerateSequences && resyncCollections == nil) || r.DocsChanged.Value() > 0 {

@torcolvin torcolvin merged commit 88d0966 into main Jun 3, 2024
34 checks passed
@torcolvin torcolvin deleted the CBG-3963 branch June 3, 2024 20:41
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