-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.4.4
-
Component/s: Index Maintenance
-
Fully Compatible
-
ALL
-
-
Storage NYC 2019-05-20
-
(copied to CRM)
I can create a TTL index with multiple fields and it succeeds. It's not until the TTL thread runs that I get an error in the logs:
Mon Jul 1 12:22:13.189 [TTLMonitor] ERROR: key for ttl index can only have 1 field
The time to show error (and maybe disallow the index creation?) is when an illegal index is specified.
In a related case, user incorrectly specifying expireAfterSeconds as the last field of the index also should get an error rather than the value other than 1 or -1 for field name being accepted.
- is duplicated by
-
SERVER-37983 createIndexes should validate the 'expireAfterSeconds' option value
- Closed
- is related to
-
SERVER-11374 Can create indexes on non-insertable fields (i.e. beginning with '$')
- Closed
- related to
-
SERVER-69783 use integral type for TTL index test case in ttl_index_options.js
- Closed
-
SERVER-52525 support expireAfterSeconds for time-series collections
- Closed