[SERVER-29747] Two phase drops: drop indexes before renaming collections if the rename will make the index name too long Created: 20/Jun/17  Updated: 30/Oct/23  Resolved: 17/Jul/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.5.11

Type: Task Priority: Major - P3
Reporter: Judah Schvimer Assignee: William Schultz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-29748 Two Phase Drops: drop indexes with lo... Closed
Related
related to SERVER-31351 rolling back a collection drop with l... Closed
related to SERVER-29373 Two Phase Drops: Relax index namespac... Closed
related to SERVER-32959 Remove index name length limit Closed
is related to SERVER-31060 Two phase drops with too long MMAPv1 ... Closed
is related to SERVER-29373 Two Phase Drops: Relax index namespac... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-07-31
Participants:

 Description   

renameCollection will fail if it would cause an index name to be too long. To avoid this, we will drop any problematic indexes and log an oplog entry for their drops before renaming the collection and logging the collection drop to the oplog. This will only apply to mmap as we will relax this constraint for wiredTiger and mmap rollback will seamlessly succeed since we already know how to rollback index drops.



 Comments   
Comment by Githook User [ 25/Jul/17 ]

Author:

{'email': 'william.schultz@mongodb.com', 'username': 'will62794', 'name': 'William Schultz'}

Message: SERVER-29747 Add two phase collection drop JS test library
Branch: master
https://github.com/mongodb/mongo/commit/48aa5370766c7a5999da45e1cb18c2d22894bfe2

Comment by Githook User [ 17/Jul/17 ]

Author:

{u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'}

Message: SERVER-29747 Drop indexes before collection drops if index names are too long
Branch: master
https://github.com/mongodb/mongo/commit/d85cadf3e1bede6c726699e0dc81d3dbe2daefb7

Generated at Thu Feb 08 04:21:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.