[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
+ chunk.cpp:multiSplit_inlock
This would have save some time in, say, |
| Comments |
| Comment by auto [ 11/Jan/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by auto [ 17/Dec/10 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: compile |
| 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: |
| 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. 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 } } } |