OplogFetcher should run LogicalTimeMetadataHook on reply metadata

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-02-24
    • 21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Before SERVER-45574, OplogFetcher used RemoteCommandRetryScheduler on the ReplicationExecutor to run oplog fetching queries. And all connections in the executor thread pool run LogicalTimeMetadataHook on incoming command replies to advance the logical clock.
      After SERVER-45574, OplogFetcher uses DBClientConnection and DBClientCursor for oplog fetching. So we should add cluster time metadata handling to the DBClientConnection's metadata reader. Otherwise, the syncing node could advance the commit point (in processMetadata) beyond the logical clock.

            Assignee:
            Lingzhi Deng
            Reporter:
            Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: