[SERVER-19212] New indexes shouldn't be usable until they are in the committed view Created: 29/Jun/15  Updated: 02/Aug/18  Resolved: 12/Aug/15

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

Type: Task Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-8969 New indexes shouldn't be usable until... Closed
Related
related to SERVER-32284 awaitReplication can hang when the op... Closed
is related to SERVER-20260 New indexes should bump their Collect... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Should probably make index builds block until that point as well.



 Comments   
Comment by Githook User [ 12/Aug/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-19212 Make w:majority wait for any reserved snapshots to be visible

This ensures that when a w:majority write that makes a new collection
returns, a reader with readConcern:majority can immediately read the
collection. If this isn't done, the reader could get a snapshot before the
minimum snapshot for the collection and error out.
Branch: master
https://github.com/mongodb/mongo/commit/0b776a40a23a667b94ed2890a51fe51847e8b481

Comment by Githook User [ 12/Aug/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-19212 Hide indexes and collections from stale majority concern reads

Reading from a collection will error out if the snapshot used by the query is
older than the collection creation or the point when the last index was
dropped from a collection.

New indexes do not cause reads to fail, but reads cannot use the new indexes
since they may be incomplete in the snapshot.
Branch: master
https://github.com/mongodb/mongo/commit/7c7487b3e0c98739249de33e84dbc76f50bd5717

Comment by Githook User [ 05/Aug/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-19212 clang-format fix
Branch: master
https://github.com/mongodb/mongo/commit/250d661a5ed716795cfd277203f5afd24c59a23d

Comment by Githook User [ 05/Aug/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-19212 Assign simple unique counter to each snapshot

Allows distinguishing snapshots created with the same OpTime as needed for
background index builds.
Branch: master
https://github.com/mongodb/mongo/commit/a0167592e58c594c50b7d6917982d4e920d2afe5

Generated at Thu Feb 08 03:50:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.