Skip to content

CBG-5457 Use 64 partitions for resync by default#8357

Merged
gregns1 merged 2 commits into
mainfrom
CBG-5457
Jun 14, 2026
Merged

CBG-5457 Use 64 partitions for resync by default#8357
gregns1 merged 2 commits into
mainfrom
CBG-5457

Conversation

@adamcfraser

@adamcfraser adamcfraser commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

CBG-5457

Use 64 partitions for resync.

Integration Tests

Copilot AI review requested due to automatic review settings June 12, 2026 05:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread db/background_mgr_resync_dcp.go Outdated
Comment on lines +33 to +34
const DefaultResyncPartitions = 64

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is an unsupported feature so this is very minor.

Comment thread db/background_mgr_resync_dcp.go Outdated
Comment on lines 416 to 422
@@ -415,7 +417,7 @@ func (r *ResyncManagerDCP) Run(ctx context.Context, options ResyncOptions, persi
if db.Options.UnsupportedOptions != nil && db.Options.UnsupportedOptions.ResyncPartitions != nil && *db.Options.UnsupportedOptions.ResyncPartitions > 0 {
partitionCount = *db.Options.UnsupportedOptions.ResyncPartitions
} else {
partitionCount = db.Options.ImportOptions.ImportPartitions
partitionCount = DefaultResyncPartitions
}
base.DebugfCtx(ctx, base.KeyAll, "Using %d partitions for resync", partitionCount)
@github-actions

Copy link
Copy Markdown

Redocly previews

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Comment on lines +489 to +491
resp := rt.CreateDatabase("db1", dbConfig)
rest.RequireStatus(t, resp, http.StatusInternalServerError)
assert.Contains(t, resp.Body.String(), "resync_partitions must be between 1 and")

@adamcfraser adamcfraser left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

LGTM

@gregns1 gregns1 merged commit 8da07c6 into main Jun 14, 2026
73 of 74 checks passed
@gregns1 gregns1 deleted the CBG-5457 branch June 14, 2026 09:17
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.

4 participants