summaryrefslogtreecommitdiff
path: root/src/mongo/client/replica_set_monitor.cpp
AgeCommit message (Collapse)Author
2024-05-23SERVER-90645 Enable tidy check misc-unused-using-decls (#22430)Matt Kneiser
Co-authored-by: Benety Goh <benety@mongodb.com> GitOrigin-RevId: e97b100882e14cca504952d321cedfb135321240
2023-06-15SERVER-77042 automated IWYU changes up to ratio of 0.3Daniel Moody
2023-04-05SERVER-75286 Initialise the CollectionWriter's _acquisition fieldKaloian Manassiev
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2021-05-21SERVER-56523: potential deadlock - avoid locking the ↵Andrew Shuvalov
ReplicaSetMonitorManager mutex when garbage collecting RSM
2020-12-08SERVER-50467: Ensure that tenant migration donor only removes a ↵Andrew Shuvalov
ReplicaSetMonitor for a recipient when the last migration to that recipient completes
2020-07-02SERVER-46367 Remove ScanningReplicaSetMonitor specific members from the ↵Haley Connelly
abstract ReplicaSetMonitor class
2020-05-14SERVER-47921 Clean up LOG lines in clientSara Golemon
2020-04-26SERVER-47735 change mongo source over to logv2Billy Donahue
- Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
2020-02-24SERVER-45962 feature flag to opt out of new RSM implementationHaley Connelly
2020-02-21SERVER-42437 Make ReplicaSetMonitorManager a ServiceContext decorationHaley Connelly
2020-02-21SERVER-45567 removing util/log.h where I canGabriel Russell
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
2020-02-13SERVER-45869 automatically converted structured loggingGabriel Russell
2020-01-22SERVER-45670 Clear ScanState on shutdownAmirsaman Memaripour
2019-10-21SERVER-42967 SERVER-42895 SERVER-44086 Expand DiagnosticInfo hooks in ↵Ben Caimano
Interruptible and Mutex This commit: - Adds Listener hooks for Interruptible - Expands Listener hooks for Mutex - Updates the DiagnosticInfo and its tests to use the new hooks - Removes stacktracing pieces from DiagnosticInfo and its tests - Removes mongo::ConditionVariable entirely in favor of Interruptible
2019-10-21SERVER-44087 ReplicaSetMonitor shutdowns should synchronize with ↵Ben Caimano
NetworkInterface shutdown
2019-10-04SERVER-43015 ReplicaSetMonitor should timeout waiters upon rescanBen Caimano
2019-10-03SERVER-43317 merge failpoint headers. Rewrite docs.Billy Donahue
iterate docs
2019-09-17SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano
2019-09-10SERVER-43119 FailPoint cleanupBilly Donahue
- Don't use MONGO_INITIALIZER to declare each fail point. We only need one init task in total: freeze and iterate the registry. - remove MONGO_FAIL_POINT_DECLARE macro (extern) - remove MONGO_FAIL_POINT_SHOULD_FAIL macro (FailPoint::shouldFail) - remove MONGO_FAIL_POINT_BLOCK_IF (FailPoint::executeIf) - remove MONGO_FAIL_POINT_BLOCK (FailPoint::execute) - clean up FailPointRegistry and fail_point_service implementation.
2019-08-23SERVER-43010 remove DEV and MONGO_DEV macrosBilly Donahue
2019-08-09SERVER-42634 RSM can strand requests after drop()Jason Carey
The RSM theoretically has a contract that all waiter-promises are fulfilled with an unsatisfied read preference error on drop(). It also supposes that after being removed from the RSM Manager that no new promises can be added. But there's a race that goes something like this: | getHostOrRefreshCaller | RSMM::shutdown() | ======================================================================= | proceed to just before | | | SetState::mutex acquisition, | | | i.e. after check for isRemoved | | | | swap monitors out and mark in | | | shutdown + drop anchor | | acquire lock and emplace waiter | | | | shutdown and join task executor | ======================================================================= This can lead to a situation where we add waiter to the rsm after a drop (and with no obvious path forward towards not needing to break that added promise) --- The fix is to: - change removal from the monitor manager into a drop() on the RSM - pivot from isRemovedFromManager to isDropped, and update isDropped under the setState mutex - check for isDropped instead of globalRSMonitorManager.isShutdown in notify This should ensure that removing a RSM from a manager is the same as dropping one and that drops serialize with calls to get (so that waiters can't race in during shutdown).
2019-07-31SERVER-42519 ReplicaSetMonitors should early return callbacks after shutdownBen Caimano
2019-07-27SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.1
2019-07-26SERVER-42342 Replica set monitor shutdown should fail all outstanding RSM ↵Ben Caimano
promises
2019-07-25SERVER-42125 Omit passive members from RSM connection stringsBen Caimano
2019-07-24SERVER-41851 Expedited scans in the RSM no longer continue after timeoutBen Caimano
2019-07-18SERVER-39692 Make mongos shutdown drain all in-progress transactionsRandolph Tan
2019-07-01SERVER-41910 Make RSM return mulitple hosts in the presence of tagsShaileja Jain
2019-06-26SERVER-40490 RSM should check replicas at most twice per secondShaileja Jain
2019-06-14SERVER-41071 Replace NULL and 0 with nullptrA. Jesse Jiryu Davis
2019-06-10SERVER-39338 Remove `stdx/functional.h`ADAM David Alan Martin
2019-06-04SERVER-40489 Simplify scan for primary by removing unnecessary ↵Shaileja Jain
receivedIsMasterBeforeFoundMaster helper function
2019-05-28SERVER-41134 Add RSM::findHostsWithMaxWaitJason Carey
Add support for a new method on the ReplicaSetMonitor, which finds all acceptable hosts for a read preference (rather than just a single host). This should use existing selection logic to return the host that would be returned by findHostWithMaxWait in the [0]th element
2019-05-21SERVER-36099 Trim FTDC connection pool statsA. Jesse Jiryu Davis
2019-05-15SERVER-41149 Skip ReplicaSetMonitor refresh on shutdownBen Caimano
2019-04-16SERVER-39818 Split RSM notification functionality into a new classBen Caimano
2019-04-16SERVER-40222 Reorganize and fixturize RSM testsBen Caimano
2019-04-15SERVER-23355 Recheck replicas every .5 sec during scanA. Jesse Jiryu Davis
2019-04-11SERVER-36359 Introduce SemiFuture<T> and ExecutorFuture<T>Mathias Stearn
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2019-01-20SERVER-9043/SERVER-31156 Link flushRouterConfig on MongoD and make it accept ↵Kaloian Manassiev
a namespace argument
2019-01-07SERVER-36644 remove AtomicWord typedefsBilly Donahue
2018-12-27SERVER-38295 ReplSetMonitor::getHostOrRefresh should not do anything if ↵Mathias Stearn
maxWait <= 0
2018-12-27SERVER-38742 Compute latencyThresholdMicros in 64-bit spaceMathias Stearn
2018-12-20SERVER-35688 Make RSM use async networkingMathias Stearn
2018-12-20SERVER-35688 Make RSM return SharedSemiFuturesMathias Stearn
This prevents consumers from chaining work that would run inside of the RSM thread and possibly cause a deadlock.
2018-12-20SERVER-38319 Propagate URI options from DBClientRS through all codepathsMathias Stearn
2018-11-14SERVER-35212: Refactor shell code to enable default authentication database ↵Tyler Kaye
as admin
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez