Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-99746

Natural Order Resharding Pipeline Does Not Increment collectionCloningTotalRemoteBatchRetrievalTimeMillis

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.0.0
    • Component/s: None
    • Cluster Scalability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      collectionCloningTotalRemoteBatchRetrievalTimeMillis was incremented here under the old pipeline and represents the time the recipient spends reading a batch from a donor. The natural order pipeline avoids calling doOneBatch and instead uses _runOnceWithNaturalOrder. A call to _metrics->onCloningRemoteBatchRetrieval should be added somewhere in _runOnceWithNaturalOrder or _queryOnceWithNaturalOrder. We should also add a unit test for the resharding collection cloner that verifies it is incrementing these metrics.

      Note that the corresponding collectionCloningTotalLocalInsertTimeMillis, which represents the time the recipient spends writing that batch to itself, was unaffected. This is because it is incremented here in writeOneBatch, which is called by _writeOnceWithNaturalOrder.

            Assignee:
            Unassigned Unassigned
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None