[SERVER-7717] opsSharded no longer updated Created: 20/Nov/12  Updated: 11/Jul/16  Resolved: 20/Dec/12

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

Type: Bug Priority: Minor - P4
Reporter: Shaun Verch Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

mongos> use test
switched to db test
mongos> sh.enableSharding("test")

{ "ok" : 1 }

mongos> sh.shardCollection("test.test",

{"x":1}

)

{ "collectionsharded" : "test.test", "ok" : 1 }

mongos> db.serverStatus().ops
{
"sharded" :

{ "insert" : 0, "query" : 0, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 0 }

,
"notSharded" :

{ "insert" : 0, "query" : 21, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 36 }

}
mongos> db.test.insert(

{"x":1}

)
mongos> db.test.find()

{ "_id" : ObjectId("50aad6fe4cd32fd23efbd4cd"), "x" : 1 }

mongos> db.serverStatus().ops
{
"sharded" :

{ "insert" : 0, "query" : 0, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 0 }

,
"notSharded" :

{ "insert" : 0, "query" : 22, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 41 }

}
mongos>

opsSharded was only used in one place, and that was taken out in: https://github.com/mongodb/mongo/commit/1973153321caf7483d0ff10913e196fa367d78f5#L3L125



 Comments   
Comment by auto [ 20/Dec/12 ]

Author:

{u'date': u'2012-12-19T20:15:48Z', u'email': u'shaun.verch@10gen.com', u'name': u'Shaun Verch'}

Message: SERVER-7717 Removed ops section from serverStatus
Branch: master
https://github.com/mongodb/mongo/commit/77a94d42d38bbfd45c7e14e6e280735a4f835530

Comment by Greg Studer [ 20/Nov/12 ]

We can try to fix this - but is this something anyone is actually using? The distinction isn't really all that meaningful anymore, since the codepaths are the same for both.

Generated at Thu Feb 08 03:15:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.