[SERVER-45770] Add to information contained in logfile about "moveChunk.to" Created: 24/Jan/20  Updated: 29/Oct/23  Resolved: 25/Feb/20

Status: Closed
Project: Core Server
Component/s: Logging, Sharding
Affects Version/s: None
Fix Version/s: 4.2.5, 3.6.18, 4.3.4, 4.0.17

Type: Improvement Priority: Minor - P4
Reporter: Giuliano Celani Assignee: Josef Ahmad
Resolution: Fixed Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0, v3.6
Participants:

 Description   

Current log files for shards do not have consistency between "moveChunk.from" and moveChunk.to" log events.

moveChunk.from provides both source shard and destination shard fields whilst moveChunk.to does not. I am aware that this can be sourced from previous events such as moveChunk.commit, but it will be a lot better if the information can be gathered from one line

moveChunk.from:

2020-01-21T14:51:49.275+1100 I SHARDING [conn29] about to log metadata event into changelog: { _id: "XX", server: "XX", clientAddr: "", time: new Date(1579578709275), what: "moveChunk.from", ns: "test.products", details: { min: { sku: MinKey }, max: { sku: 23153496 }, step 1 of 6: 0, step 2 of 6: 1, step 3 of 6: 226, step 4 of 6: 13441, step 5 of 6: 331, step 6 of 6: 61, to: "shard02", from: "shard01", note: "success" } }

moveChunk.to:

2020-01-21T14:51:49.207+1100 I SHARDING [migrateThread] about to log metadata event into changelog: { _id: "XX, server: "XX", clientAddr: "", time: new Date(1579578709206), what: "moveChunk.to", ns: "test.products", details: { min: { sku: MinKey }, max: { sku: 23153496 }, step 1 of 6: 157, step 2 of 6: 20, step 3 of 6: 11589, step 4 of 6: 0, step 5 of 6: 1704, step 6 of 6: 293, note: "success" } }

 



 Comments   
Comment by Githook User [ 06/Mar/20 ]

Author:

{'username': 'josefahmad', 'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com'}

Message: SERVER-45770 add to/from information to moveChunk.to log message

(cherry picked from commit 742ac9b37b1d8f489e1b259a0a3575f8811edac4)

Conflicts:
src/mongo/db/s/migration_destination_manager.cpp
Branch: v3.6
https://github.com/mongodb/mongo/commit/1aa5a7eaab26e19fe8edb7c59b0c9ee6d61b2b04

Comment by Githook User [ 06/Mar/20 ]

Author:

{'name': 'Josef Ahmad', 'username': 'josefahmad', 'email': 'josef.ahmad@mongodb.com'}

Message: SERVER-45770 add to/from information to moveChunk.to log message

(cherry picked from commit 742ac9b37b1d8f489e1b259a0a3575f8811edac4)

Conflicts:
src/mongo/db/s/migration_destination_manager.cpp
Branch: v4.0
https://github.com/mongodb/mongo/commit/25d38642ed3beb47fd731e405f197ca6de820d6e

Comment by Githook User [ 06/Mar/20 ]

Author:

{'name': 'Josef Ahmad', 'username': 'josefahmad', 'email': 'josef.ahmad@mongodb.com'}

Message: SERVER-45770 add to/from information to moveChunk.to log message

(cherry picked from commit 742ac9b37b1d8f489e1b259a0a3575f8811edac4)

Conflicts:
src/mongo/db/s/migration_destination_manager.cpp
Branch: v4.2
https://github.com/mongodb/mongo/commit/e562d69a882df3c06e37d1db47eb303140f87db3

Comment by Githook User [ 25/Feb/20 ]

Author:

{'username': 'josefahmad', 'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com'}

Message: SERVER-45770 add to/from information to moveChunk.to log message
Branch: master
https://github.com/mongodb/mongo/commit/742ac9b37b1d8f489e1b259a0a3575f8811edac4

Generated at Thu Feb 08 05:09:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.