You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mongo 4.2 change how indexes are built and it appears as though the default behavior is background creation. It's not clear if the client blocks while the index is created. If not, the service could start while the necessary indexes aren't in place which could cause corrupt data and index build fails.
The text was updated successfully, but these errors were encountered:
As such, the index build will need to be updated to
createIndex for all the indexes
wait for some period of time (1s?)
This allows the indexes to be created on a fresh install
check that all the indexes are correctly created, and throw an error telling the user to create the missing indexes if not.
The alternative is to sit there and poll until the indexes are built, but that seems like a waste of time - better to just shut down.
MrCreosote
changed the title
Understand index creation blocking before upgrading to Mongo 4.2
Update index creation before upgrading to Mongo 4.2
Jun 6, 2023
Mongo 4.2 change how indexes are built and it appears as though the default behavior is background creation. It's not clear if the client blocks while the index is created. If not, the service could start while the necessary indexes aren't in place which could cause corrupt data and index build fails.
The text was updated successfully, but these errors were encountered: