-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
ALL
-
Observed behavior is:
- Secondary mongod instances block on Global lock and effectively all operations except building index are waiting for Global lock.
- Replication is effectively paused.
- Due to replication pause all operations with writeConcern:majority on the primary instance are blocked. E. g. db.t.insertOne({foo:1}, {w:'majority'}) will hang until one of secondaries catch up with primary.
- All read operations with readPreference set to secondaryPreferred also hang until indices are built on that secondary. E. g.
db.getMongo().setReadPref('secondaryPreferred');
db.t.find();
will hang.
Results of db.currentOp() from secondary instance with hanged db.t.find() are attached to the issue.
This behavior is very surprising and isn't documented, so I consider it a bug.
- duplicates
-
SERVER-21307 Replicated DDL (catalog) operation during background index build blocks reads/writes
- Closed