Skip to content

[4.1.2 Backport] CBG-5752: switch names from Resume -> Join - #8660

Merged
bbrks merged 1 commit into
release/4.1.2from
CBG-5752
Aug 26, 2026
Merged

[4.1.2 Backport] CBG-5752: switch names from Resume -> Join#8660
bbrks merged 1 commit into
release/4.1.2from
CBG-5752

Conversation

@torcolvin

@torcolvin torcolvin commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

CBG-5752

Clean cherry pick of #8470 (CBG-5435) to 4.1.2

Stacked on #8635 (CBG-5744), and sits below #8631 (CBG-5743) and #8632 (CBG-5594) to match upstream order: this rename landed 2026-07-22, before CBG-5496 (#8454) and CBG-5521 (#8468).

Pure rename, no behaviour change: BackgroundManager.ResumeJoin and the start() isResume parameter → isJoin. The Join body, the persisted backgroundManagerStatusResume / backgroundManagerInitResume constants and the wire format are untouched. Backported ahead of the remaining BackgroundManager work so those backports apply against matching identifiers instead of each carrying the rename as conflict noise.

🤖 Opened with the sync-gateway-backport skill in Claude Code

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

This backport aligns the 4.1.2 branch with main by renaming the BackgroundManager “Resume” concept to “Join” for multi-node/background-process cluster participation, updating related callback plumbing and docstrings while keeping persisted constants and wire format unchanged.

Changes:

  • Renamed BackgroundManager.ResumeJoin and start(..., isResume)start(..., isJoin) across DB/resync integration points.
  • Updated DatabaseStateMgr resync callback type/field naming from “resume” to “join”, including logging text.
  • Updated unit tests and doc/comments to reflect “Join” terminology.

Reviewed changes

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

Show a summary per file
File Description
db/database.go Wires distributed resync “join” callback into DatabaseStateMgr.
db/database_state.go Renames resync callback type/field to “join” and updates warning message text.
db/database_state_test.go Updates test names/descriptions to match “join” terminology.
db/background_mgr.go Renames exported API to Join, updates internal parameter naming and expands doc comments.
db/background_mgr_test.go Renames/updates tests to call Join and reflect new terminology.
db/background_mgr_resync_dcp.go Updates resync manager comments referring to persisted start options for Join.
db/background_mgr_resync_dcp_test.go Updates resync manager tests/comments referring to Join behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread db/background_mgr.go
bbrks
bbrks previously approved these changes Aug 25, 2026
@torcolvin torcolvin assigned torcolvin and unassigned bbrks Aug 25, 2026
@torcolvin
torcolvin dismissed bbrks’s stale review August 25, 2026 20:02

The merge-base changed after approval.

@torcolvin torcolvin assigned bbrks and unassigned torcolvin Aug 26, 2026
bbrks
bbrks previously approved these changes Aug 26, 2026

@bbrks bbrks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

approved but the parent commit is duplicated in this branch as well as in the parent branch

I think gh stack is likely to blame

bbrks
bbrks previously approved these changes Aug 26, 2026
Base automatically changed from CBG-5744 to release/4.1.2 August 26, 2026 17:54
@torcolvin
torcolvin dismissed bbrks’s stale review August 26, 2026 17:54

The merge-base changed after approval.

Cherry-picked from 2b68789 (CBG-5435, #8470).

Renames BackgroundManager.Resume to Join (and the start() isResume parameter to
isJoin) plus the doc comments that go with it. No behaviour change: the Join
body, the persisted backgroundManagerStatusResume / backgroundManagerInitResume
constants and the wire format are all untouched.

Ordered below the CBG-5743 and CBG-5594 backports to match upstream, where this
rename (2026-07-22) landed before CBG-5496 (#8454, 2026-08-04) and CBG-5521
(#8468, 2026-08-05).

Co-Authored-By: Tor Colvin <tor.colvin@couchbase.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bbrks
bbrks merged commit a909d54 into release/4.1.2 Aug 26, 2026
42 checks passed
@bbrks
bbrks deleted the CBG-5752 branch August 26, 2026 18:09
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.

3 participants