[SERVER-35049] setIgnorePrepared() is not supported by other storage engines Created: 17/May/18 Updated: 17/May/18 Resolved: 17/May/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Xiangyu Yao (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Steps To Reproduce: | Running secondary_reads.js from concurrency_replication suite locally could reproduce this issue. |
||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 32 | ||||||||||||
| Description |
|
reads with 'available' readConcern will call setIgnorePrepared() in read_concern.cpp. For other storage engines, setIgnorePrepared() is not implemented, so a 'CommandNotSupported' exception will be thrown. A possible fix would be to make setIgnorePrepared a noop for other storage engines. Another would be to have a boolean called 'supportPrepare' for each storage engine and do setIgnorePrepared() only when it's true. |