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-4019 Add init_in_progress property to db and verbose all_dbs responses #6910

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

adamcfraser
Copy link
Collaborator

@adamcfraser adamcfraser commented Jun 23, 2024

CBG-4019

Adds init_in_progress flag to REST API db status calls when async index initialization is in progress.

Integration Tests

Copy link
Collaborator

@torcolvin torcolvin left a comment

Choose a reason for hiding this comment

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

API docs need to be updated:

require.Equal(t, expectedValue, dbSummary.InitializationActive)
}
}
require.True(t, dbFound, "Database not found in _all_dbs response")
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(t, dbFound, "Database not found in _all_dbs response")
require.True(t, dbFound, "Database not found in _all_dbs response %+v", allDbResult)

rest/api.go Outdated
Bucket string `json:"bucket"`
State string `json:"state"`
InitializationActive bool `json:"init_in_progress,omitempty"`
Reason string `json:"reason,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you plan to change Reason to RequireResync in this PR? This was only in 3.1.7 and Isaac said it was fine to change this before rollout.

Copy link

github-actions bot commented Jun 24, 2024

Redocly previews

@torcolvin torcolvin assigned adamcfraser and unassigned torcolvin Jun 24, 2024
torcolvin
torcolvin previously approved these changes Jun 24, 2024
@torcolvin torcolvin enabled auto-merge (squash) June 24, 2024 22:34
@torcolvin torcolvin merged commit c85d5c0 into main Jun 24, 2024
38 of 39 checks passed
@torcolvin torcolvin deleted the CBG-4019 branch June 24, 2024 22:53
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