-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.0.0
-
Component/s: Index Maintenance, Replication, WiredTiger
-
None
-
Fully Compatible
-
ALL
-
-
Quint Iteration 3.1.2
ISSUE SUMMARY
MongoDB 3.0 secondaries running non-MMAPv1 storage engines (i.e.: WiredTiger, RocksDB) may fail to properly handle updates involving keys longer than 1024 bytes if the key is indexed.
Setting failIndexKeyTooLong to false has no effect.
USER IMPACT
A secondary receiving an update involving a key longer than 1024 terminates if there's an index on that key. If enough secondaries are affected the replica set may become unavailable.
WORKAROUNDS
It is highly recommended that users do not use keys longer than 1024. When upgrading from 2.6, please upgrade directly to version 3.0.3 or higher.
AFFECTED VERSIONS
MongoDB versions 3.0.0, 3.0.1, and 3.0.2 are affected by this issue.
FIX VERSION
The fix is included in the 3.0.3 production release.
Original description
If you have a 2.6 PRIMARY and a WT or RocksDB SECONDARY, you can crash the SECONDARY by updating an indexed key with > 1024 characters.