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-3277 add a stat for mismatched bucket names in dbconfigs #6410

Merged
merged 10 commits into from
Sep 15, 2023
Merged

Conversation

torcolvin
Copy link
Collaborator

@torcolvin torcolvin commented Sep 11, 2023

Fixed some copypasta test assertions from previous commit.

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

base/stats.go Outdated Show resolved Hide resolved
base/stats.go Outdated Show resolved Hide resolved
base/stats.go Outdated Show resolved Hide resolved
@adamcfraser adamcfraser assigned torcolvin and unassigned adamcfraser Sep 12, 2023
API call is happening

- fix a race where the invalid status wouldn't get cleared:
	- config polling gets data
	- PUT config
	- log about config error / clear config error
	- this config wouldn't be re-read because it would CAS match
- remove assertions to stats, because they are global and with a bucket
  pool, configs from previous tests will contaiminate the test harness
@torcolvin torcolvin assigned adamcfraser and unassigned torcolvin Sep 14, 2023
base/stats.go Outdated Show resolved Hide resolved
base/stats_descriptions.go Outdated Show resolved Hide resolved
@@ -3724,7 +3726,7 @@ func TestConfigsIncludeDefaults(t *testing.T) {
assert.Equal(t, db.DefaultChannelCacheMaxNumber, *runtimeServerConfigDatabase.CacheConfig.ChannelCacheConfig.MaxNumber)
assert.Equal(t, base.DefaultOldRevExpirySeconds, *runtimeServerConfigDatabase.OldRevExpirySeconds)
assert.Equal(t, false, *runtimeServerConfigDatabase.StartOffline)
assert.Equal(t, db.DefaultCompactInterval, uint32(*runtimeServerConfigDatabase.CompactIntervalDays))
assert.Equal(t, db.DefaultCompactInterval, time.Duration(*runtimeServerConfigDatabase.CompactIntervalDays)*24*time.Hour)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we rebasing this to remove this change in this PR?

@torcolvin torcolvin merged commit f761691 into master Sep 15, 2023
@torcolvin torcolvin deleted the CBG-3277 branch September 15, 2023 12:34
bbrks pushed a commit that referenced this pull request Oct 3, 2023
…dbconfigs (#6410)

* CBG-3277 add a stat for mismatched bucket names in dbconfigs

* fix panic if bootstrap polling removes a database in memory while a REST API call is happening
bbrks pushed a commit that referenced this pull request Mar 28, 2024
* CBG-3277 add a stat for mismatched bucket names in dbconfigs

* fix panic if bootstrap polling removes a database in memory while a REST API call is happening
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