[SERVER-35130] view_catalog_cycle_lookup.js failed in the newly created concurrency_replication_causal_consistency suite Created: 21/May/18  Updated: 29/Oct/23  Resolved: 09/Jun/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.0.0-rc5, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-39950 Merge two oplog batching code paths Closed
is related to SERVER-32883 Enhanced FSM testing for reading from... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Storage NYC 2018-06-04, Storage NYC 2018-06-18
Participants:

 Description   

The evergreen patch shows that there could be a view cycle when we perform reads on the secondary node. Since collMod command won't succeed on the primary if it forms a cycle, this could be a bug for secondary reads.

Update:
Basically, view catalog could reload (loading view definitions from system.views to in-memory data structure) whenever a read comes and there is discrepancy between persistent version and in-memory version of view definition, even during oplog application. Thus, secondary reads could see inconsistent state of view catalog.



 Comments   
Comment by Githook User [ 09/Jun/18 ]

Author:

{'username': 'xy24', 'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-35130 Oplog entries on system.views must be processed one at a time

(cherry picked from commit f78e580dad60fa6ece39f34b3dcfc3ed95b85414)
Branch: v4.0
https://github.com/mongodb/mongo/commit/15a419113dcf3721657918a1f7ed71f2581ffa76

Comment by Githook User [ 09/Jun/18 ]

Author:

{'username': 'xy24', 'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-35130 Oplog entries on system.views must be processed one at a time
Branch: master
https://github.com/mongodb/mongo/commit/f78e580dad60fa6ece39f34b3dcfc3ed95b85414

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