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

applyOp in ReshardingOplogApplicationRules sets lock acquisition deadline on opCtx

    XMLWordPrintableJSON

Details

    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v7.3, v7.2
    • Cluster Scalability 2024-1-22, Cluster Scalability 2024-2-5
    • 13
    • 3

    Description

      As part of SERVER-75580, _applyInsertOrUpdate is modified to run the collection lock acquisition function as a callback to OperationContext::runWithDeadline with deadline of gReshardingOplogApplierMaxLockRequestTimeoutMillis which has a default value of 5ms. This sets a deadline of lock acquisition to the whole function call back incorrectly, as the deadline is meant specifically for time to acquire the collection lock. This happens at multiple places in other applyOp functions and need to be fixed. 

      Attachments

        Activity

          People

            wenqin.ye@mongodb.com Wenqin Ye
            abdul.qadeer@mongodb.com Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: