Skip to content

CBL-7099: Passive Replicator in Multipeer Replication stayed in BUSY …#2300

Merged
jianminzhao merged 1 commit into
masterfrom
cbl-7099
Jul 2, 2025
Merged

CBL-7099: Passive Replicator in Multipeer Replication stayed in BUSY …#2300
jianminzhao merged 1 commit into
masterfrom
cbl-7099

Conversation

@jianminzhao

@jianminzhao jianminzhao commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

…state

The root cause is the following. Replicator keeps the status of the pushers and pullers. They are initialized at Busy. Workers in general initializes the status either Idle or Connecting. When initialized to Idle, it may stay in Idle and since there is no change in the status, it won't have chance to update the parent Replicator.

I changed the Worker to initialize the status to Busy or Connecting. Workers cannot stay in Busy if there is no real activity.

…state

The root cause is the following. Replicator keeps the status of the pushers and pullers. They are initialized at Busy. Workers in general initializes the status either Idle or Connecting. When initialized to Idle, it may stay in Idle and since there is no change in the status, it won't have chance to update the paret Replicator.

I changed the Worker to initialize the status to Busy or Connecting. Workers cannot stay in Busy if there is no real activity.
@cbl-bot

cbl-bot commented Jul 2, 2025

Copy link
Copy Markdown

Code Coverage Results:

Type Percentage
branches 65.85
functions 77.56
instantiations 70.21
lines 77.0
regions 72.89

@jianminzhao jianminzhao requested a review from pasin July 2, 2025 17:21
@jianminzhao jianminzhao merged commit 5886a90 into master Jul 2, 2025
8 checks passed
@jianminzhao jianminzhao deleted the cbl-7099 branch July 2, 2025 18:11
jianminzhao added a commit that referenced this pull request Jul 2, 2025
CBL-7099: Passive Replicator in Multipeer Replication stayed in BUSY state (#2300)
CBL-7013: Native crash when using LiteCore 3.3.0-80 (#2299)
CBL-7134: Added Observer::removeFromObserverList()
CBL-7100: Stop Multipeer Replicator causes the user's database to be closed (#2293)
CBL-7026: Limit character set allowed in the database name (#2292)

Inlcuded in EE:
CBL-7140: Ensure C4PeerSync::stop always notifies (#60)
7319f7f   C4PeerSync::onlinePeers should not return offline peers, duh (#59)
214063c   Added calls to Observer::removeFromObserverList
CBL-7101: Ensure proper shutdown of C4PeerSync / MeshManager
CBL-7100: Stop Multipeer Replicator causes the user's database to be closed. (#57)
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