-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
None
-
Environment:mongodb community 5.0.10
-
ALL
We have mongodb 5.0, shurded cluster with one shard.
Config servers - 6 nodes, 3 in main data center, 3 in second data center. In second data center 1 node has votes = 0, all nodes in second data center have priority = 0.
Data replica set - 6 nodes, 3 in main data center, 3 in second data center. In second data center 1 node has votes = 0, all nodes in second data center have priority = 0.
During some period of time we had network problems between main and second data centers. We still had majority 3 voting nodes of 5, but app had errors:
org.apache.kafka.streams.errors.StreamsException: Exception caught in process. taskId=0_4, processor=KSTREAM-SOURCE-0000000000, topic=production.elk.diagnostic-system, partition=4, offset=19465083, stacktrace=ru.lanit.torgi.commons.kafka.streams.errors.KafkaStreamException: org.springframework.dao.DataIntegrityViolationException: Write operation error on server mongo-config-3:27017. Write error: WriteError{code=202, message='Write results unavailable from failing to target a host in the shard rs0 :: caused by :: could not get updated shard list from config server :: caused by :: Couldn't get a connection within the time limit', details={}}.; nested exception is com.mongodb.MongoWriteException: Write operation error on server mongo-config-3:27017. Write error: WriteError{code=202, message='Write results unavailable from failing to target a host in the shard rs0 :: caused by :: could not get updated shard list from config server :: caused by :: Couldn't get a connection within the time limit', details={}}.
Why had error occured?