0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests
Andy Schwerin cdc7af4c6d SERVER-27490 Stop consulting storage engine isDurable flag in ReplicationCoordinatorImpl
... and simplify ReplCoordTestFixture

ReplicationCoordinatorImpl consults the storage engine's isDurable flag for two purposes:

1. To choose whether to present the durable or applied optime when standing for
election in pv1

2. To decide how to interpret w:majority without an explicit j field when
waiting for write concern.

In the first case, it is unnecessary to choose which optime to apply based on
the isDurable flag. It is always safe and correct to present the applied optime,
because if the node presenting it wins election, it will attempt to commit that
applied optime. That means that voters may safely vote for that node.

In the second case, using the value of the local node's storage engine's
isDurable flag to adjust the meaning of w:majority is out of spec. Whether
w:majority writes wait for journaling is a function only of the
writeConcernMajorityJournalDefault flag when a write concern omits the "j"
field.

This patch removes the unnecessary consultation of the isDurable flag, and
uses the opportunity to simplify the constructor of
ReplicationCoordinatorImpl and its test fixture.
2017-01-07 15:08:22 -05:00
..
aggregation SERVER-27090 cursor_timeout.js sets cursorTimeoutMillis incorrectly 2016-11-22 08:55:11 -05:00
auth SERVER-27490 Stop consulting storage engine isDurable flag in ReplicationCoordinatorImpl 2017-01-07 15:08:22 -05:00
concurrency SERVER-27406 Reduce DocumentSourceCursor batch size from 16MB to 4MB 2016-12-27 11:26:52 -05:00
core SERVER-27175 Improve performance of planSummary string generation 2016-12-27 16:22:21 -05:00
decimal
disk SERVER-27267 clean up after too_many_fds, and run disk suite serially 2016-12-15 09:04:10 -05:00
dur
fail_point
gle
hooks SERVER-26894 Tolerate invalid views in validate_collections.js. 2016-11-09 09:03:44 -05:00
httpinterface
libs SERVER-27421 Parallel test suites should pick up tests in subdirectories of jstests/core 2017-01-06 12:18:21 -05:00
mmap_v1 SERVER-24739: Validate syncdelay at startup and on setParameter 2016-11-29 11:53:49 -05:00
multiVersion SERVER-26828 unblacklist 3.2 incompatibilities in sharding_last_stable_mongos_and_mixed_shards suite 2017-01-04 19:13:37 -05:00
noPassthrough SERVER-26765 move tests in jstests/views to other suites 2016-12-15 16:39:51 -05:00
noPassthroughWithMongod SERVER-26525: Factor out identical checkLog functions 2016-12-16 12:15:17 -05:00
parallel SERVER-27585 Parallel tests basic.js & basicPlus.js should not do collection validation 2017-01-05 13:56:25 -05:00
perf
readonly SERVER-25904 include expected error code in read-only write ops test 2016-12-12 11:11:03 -05:00
repl SERVER-27340 Add more info in case of unexpected extra op in oplog 2016-12-08 13:52:05 -05:00
replsets SERVER-27123 Only update the commit point as a secondary from oplog queries against your sync source 2017-01-04 16:00:25 -05:00
serial_run
sharding SERVER-27466 move transitionToPrimaryHangBeforeInitializingConfigDatabase to before taking the global exclusive lock 2016-12-21 17:10:36 -05:00
slow1 SERVER-26065 Write more generic optime comparator function 2016-11-09 16:01:59 -05:00
ssl SERVER-27490 Stop consulting storage engine isDurable flag in ReplicationCoordinatorImpl 2017-01-07 15:08:22 -05:00
sslSpecial SERVER-27490 Stop consulting storage engine isDurable flag in ReplicationCoordinatorImpl 2017-01-07 15:08:22 -05:00
tool SERVER-26474 clean up dumprestore7.js 2016-10-05 17:26:50 -04:00