[SERVER-4077] need more helpful error message for unauthorized connection on splitChunk Created: 15/Oct/11  Updated: 11/Jul/16  Resolved: 12/Dec/11

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

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:

 Description   

Unauthorized connection for splitChunk results in unhelpful error message.

http://buildbot.mongodb.org/builders/Linux%2064-bit/builds/3755/steps/test_3/logs/stdio/text

m40000| Fri Oct 14 22:27:04 [conn12] assertion 10057 unauthorized db:config lock type:-1 client:10.110.9.236 ns:config.shards query:{}
m30999| Fri Oct 14 22:27:04 [conn1] warning: splitChunk failed - cmd: { splitChunk: "test.foo", keyPattern:

{ _id: 1.0 }

, min:

{ _id: MinKey }

, max:

{ _id: MaxKey }

, from: "bs-linux64.10gen.cc:30000", splitKeys: [

{ _id: 1.0 }

], shardId: "test.foo-_id_MinKey", configdb: "bs-linux64.10gen.cc:40000" } result:

{ errmsg: "exception: field not found, expected type 2", code: 13111, ok: 0.0 }

{
"cause" :

{ "errmsg" : "exception: field not found, expected type 2", "code" : 13111, "ok" : 0 }

,
"ok" : 0,
"errmsg" : "split failed"
}
assert failed



 Comments   
Comment by Greg Studer [ 12/Dec/11 ]

retested with newer version, error message is now informative.

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