[CSHARP-1319] waiting for replication timed out at Created: 16/Jun/15  Updated: 05/Apr/19  Resolved: 22/Jun/15

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: 1.10
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: DaixiShi Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: driver, question, replication, sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Cent OS 6.4
MongoDB 3.0.3


Backwards Compatibility: Fully Compatible

 Description   

I have 3 shards in my sharded cluster based on WiredTiger engine of MongoDB.
When I use the insertBatch method to insert multiple documents into the cluster, the driver often throws the exceptions as below:
waiting for replication timed out at shard02 and
multiple errors reported : waiting for replication timed out at shard02 :: and :: waiting for replication timed out at shard03
These exceptions occur often.
Is this normal or can I catch those exceptions and ignore them??



 Comments   
Comment by Craig Wilson [ 22/Jun/15 ]

Hi DaixiShi,

We generally reserve tickets for bugs and feature requests. Our user forum and stackoverflow.com are great places to ask questions for many reasons.

To answer your question, the server is providing back these errors indicating that the write concern you requested couldn't be satisfied. This isn't abnormal, but I wouldn't catch these and just move on. It means that whatever your last write may or may not have been written to disk.

Craig

Generated at Wed Feb 07 21:39:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.