[SERVER-1992] Log remote requestor for splits and migrates Created: 23/Oct/10  Updated: 12/Jul/16  Resolved: 17/Dec/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.4

Type: Improvement Priority: Minor - P4
Reporter: Alberto Lerner Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

It would help in debugging if mongod's log had info about which mongos asked for a split or a migrated. Specifically:

+ config.cpp:MoveTimingHelper

  • record in logChange which mongos requested the move

+ chunk.cpp:multiSplit_inlock

  • record in logChagne which mongos initiated the split

This would have save some time in, say, SERVER-1979



 Comments   
Comment by auto [ 11/Jan/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-1992: check if currentClient is 0, which can happen in mongos
https://github.com/mongodb/mongo/commit/2560f2c291329b0783a08d9ba7af5b7cfbf0a446

Comment by auto [ 17/Dec/10 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: compile SERVER-1992
https://github.com/mongodb/mongo/commit/0053e71ff9942f607a63861396e6460936694ac0

Comment by Antoine Girbal [ 17/Dec/10 ]

tested by splitting chunk and watching log line on mongod

Comment by auto [ 17/Dec/10 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-1992: Log remote requestor for splits and migrates
https://github.com/mongodb/mongo/commit/24cf03c6549afdba42b0685dbedafa8e61b52dd4

Comment by Antoine Girbal [ 17/Dec/10 ]

Looks like the best we can do for now is print out the IP:port of the client that requested the split or move.
The following is now available in "clientAddr" key.

Thu Dec 16 16:09:28 [conn3] about to issue config change: { _id: "ag410-2010-12-17T00:09:28-0", server: "ag410", clientAddr: "127.0.0.1:45439", time: new Date(1292544568485), what: "split", ns: "mydb.users", details: { before: { min:

{ ln: MinKey }

, max:

{ ln: "e" }

, lastmod: Timestamp 2000|1 }, left: { min:

{ ln: MinKey }

, max:

{ ln: "Girbal" }

, lastmod: Timestamp 2000|6 }, right: { min:

{ ln: "Girbal" }

, max:

{ ln: "e" }

, lastmod: Timestamp 2000|7 } } }

Generated at Thu Feb 08 02:58:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.