|
Sounds good, if this seems unnecessary to fix feel free to close this out.
Just curious, if any customers have shell scripts that run with a collection name of "hello" will this break them? Might be a small backwards compatability issue.
|
|
Hey andrew.marshall, I think this is an expected (if not exactly intended) result from changing the isMaster command to hello.
Demonstrating isMaster behaves the same way:
test> db.isMaster.insert({})
|
uncaught exception: TypeError: db.isMaster.insert is not a function :
|
@(shell):1:1
|
Reproducing the problem and verifying that db.getCollection("hello") is a suitable workaround:
test> db["hello"].insert({})
|
uncaught exception: TypeError: db.hello.insert is not a function :
|
@(shell):1:1
|
test> db.getCollection("hello").insert({})
|
WriteResult({ "nInserted" : 1 })
|
test> db.hello.find()
|
uncaught exception: TypeError: db.hello.find is not a function :
|
@(shell):1:1
|
test> db.getCollection("hello").find()
|
{ "_id" : ObjectId("6075ade2766c0118ae5db524") }
|
test> db.hello()
|
{
|
"isWritablePrimary" : true,
|
"topologyVersion" : {
|
"processId" : ObjectId("6075ada18c1b22478f88d61f"),
|
"counter" : NumberLong(0)
|
},
|
"maxBsonObjectSize" : 16777216,
|
"maxMessageSizeBytes" : 48000000,
|
"maxWriteBatchSize" : 100000,
|
"localTime" : ISODate("2021-04-13T14:43:09.237Z"),
|
"logicalSessionTimeoutMinutes" : 30,
|
"connectionId" : 1,
|
"minWireVersion" : 0,
|
"maxWireVersion" : 12,
|
"readOnly" : false,
|
"ok" : 1
|
}
|
|