[SERVER-12933] v2.6 shell incompatible with server v2.4 inserts Created: 27/Feb/14  Updated: 10/Dec/14  Resolved: 27/Feb/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.6.0-rc0
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Ben Becker Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-12743 shell doesn't test server version on ... Backlog
Related
Operating System: ALL
Participants:

 Description   

Running v2.6rc0 of the shell against v2.6rc0 of the server version works as expected:

> db.t.insert({a:1})
WriteResult({ "nInserted" : 1 })

Running the same shell against v2.4.9 of the server results in an error:

> db.t.insert({a:1})
2014-02-27T09:02:17.613-0800 Error: batch failed, cannot aggregate results: no such cmd: insert at src/mongo/shell/bulk_api.js:696



 Comments   
Comment by Ben Becker [ 27/Feb/14 ]

rassi@10gen.com, that's correct; it is after a reconnection. Thanks!

Comment by J Rassi [ 27/Feb/14 ]

In a clean shell session this works fine for me:

MongoDB shell version: 2.6.0-rc0
connecting to: test
> db.version()
2.4.9
> db.foo.insert({a:1})
> db.getLastError()
null
>
bye

I'll assume then that you got this error after a reconnection, in which case I'll close this as a dup of SERVER-12743 (please re-open if that's not the case).

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