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-3953: [3.1.9 backport] Avoid timeout on creating indexes asynchronously #6934

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

gregns1
Copy link
Contributor

@gregns1 gregns1 commented Jul 3, 2024

CBG-3953

  • Review carefully, I had to add some missing code manually such as indexManager so should ensure I haven't missed things or added functionality not needed in 3.1.9

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 and others added 2 commits July 3, 2024 10:10
* CBG-3941 use infinite waiting for database init manager

- create a LeakyClusterOnlyN1QLStore to allow better testing of init
  manager.
- wait for 15 minutes for index creation except via database init
  manager.
- remove unnecessary waiting for index if BUILD INDEX fails with a
  retryable error, since we already wait later for the index.

* wipe out testing changes

* Add RetryLoop test

* remove more unnecessary test changes

* Fix retry condition

* Update base/collection_n1ql_common.go

Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>

* Remove possibly expensive time calculation

* Change signature for leaky datastore

---------

Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>
@@ -26,7 +27,7 @@ type LeakyDataStore struct {
var (
_ DataStore = &LeakyDataStore{}
_ WrappingDatastore = &LeakyDataStore{}
// _ N1QLStore = &LeakyDataStore{} // TODO: Not implemented
_ N1QLStore = &LeakyDataStore{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think adding n1ql support to leakydatastore is not necessary for this PR (and was speculative on main)

@torcolvin torcolvin assigned gregns1 and unassigned torcolvin Jul 3, 2024
@gregns1 gregns1 assigned torcolvin and unassigned gregns1 Jul 8, 2024
@torcolvin torcolvin merged commit cd8adf6 into release/3.1.9 Jul 8, 2024
24 checks passed
@torcolvin torcolvin deleted the CBG-3953 branch July 8, 2024 13:52
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