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

Modify oplog recovery application log line to include numOpsToApply

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Repl 2025-01-06, Repl 2025-03-17

      https://github.com/mongodb/mongo/blob/aaac2c39a7f8066ea8cffb9a86fed595704a3b2d/src/mongo/db/repl/replication_recovery.cpp#L161
      In this log line we log "numOpsApplied" before it is incremented by the upcoming batch size. I think this might be because we haven't yet applied these ops yet so we don't want to preemptively log it but since the subsequent log line about actually applying individual ops is not always logged, if there's only one batch we end up not knowing how many ops will be applied.
      It would be helpful if we changed this log line to log the number of ops that will be applied.

            Assignee:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Reporter:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: