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

Improve logging in tenant migration donor & recipient service.

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0, 7.1.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.1
    • Server Serverless 2023-04-17, Server Serverless 2023-05-01, Server Serverless 2023-05-15, Server Serverless 2023-09-18

      Ask #1
      Technically, donor sends 3 internal commands to recipient

      1) recipientSyncData cmd
      2) recipientSyncData cmd with returnAfterReachingDonorTimestamp
      3) RecipientForgetMigration cmd

      If those commands fails for any reason, the donor logs the error message as Tenant migration recipient command failed... with reason for the failure but doesn't log the command name that failed.

      Sample log message

      "Entering 'aborted' state.","attr":{"migrationId":{"uuid":{"$uuid":"0b5da69e-ce14-4c0e-8e26-32878f04bbcf"}},"tenantId":"","status":{"code":325,"codeName":"TenantMigrationAborted","errmsg":"Tenant migration recipient command failed :: caused by :: Failover happened during migration :: migrationId: 0b5da69e-ce14-4c0e-8e26-32878f04bbcf"}}}
      

      Ask #2
      When the oplog fetcher fails, the error message we are printing today is not clear which component in the recipient service threw that error.

      {"code":50,"codeName":"MaxTimeMSExpired","errmsg":"Tenant migration recipient command failed :: caused by :: PlanExecutor error during aggregation :: caused by :: operation exceeded time limit"}
      

            Assignee:
            suganthi.mani@mongodb.com Suganthi Mani
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: