Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12743

shell doesn't test server version on reconnect

    • ALL

      test@test:PRIMARY(2.5.5) > for (i=0;i<10;i++) db.foo.insert({test:"test"+i})
      2014-02-14T11:28:25.664-0800 DBClientCursor::init call() failed
      2014-02-14T11:28:25.666-0800 Error: error doing query: failed at src/mongo/shell/query.js:81
      2014-02-14T11:28:25.668-0800 trying reconnect to 127.0.0.1:40001 (127.0.0.1) failed
      2014-02-14T11:28:25.668-0800 reconnect 127.0.0.1:40001 (127.0.0.1) ok
      test@test:PRIMARY(2.4.8) > for (i=0;i<10;i++) db.foo.insert({test:"test"+i})
      2014-02-14T11:28:27.415-0800 batch failed, cannot aggregate results: no such cmd: insert at src/mongo/shell/batch_api.js:612
      test@test:PRIMARY(2.4.8) >
      test@test:PRIMARY(2.4.8) >
      test@test:PRIMARY(2.4.8) > for (i=0;i<10;i++) db.foo.insert({test:"test"+i})
      2014-02-14T11:28:32.270-0800 batch failed, cannot aggregate results: no such cmd: insert at src/mongo/shell/batch_api.js:612
      test@test:PRIMARY(2.4.8) > db.foo.insert({test:"test1"})
      2014-02-14T11:28:39.309-0800 batch failed, cannot aggregate results: no such cmd: insert at src/mongo/shell/batch_api.js:612
      test@test:PRIMARY(2.4.8) > exit
      bye
      asyasmacbook:scripts asya13$ mongo --port 40001
      MongoDB shell version: 2.5.5
      connecting to: 127.0.0.1:40001/test
      test@test:PRIMARY(2.4.8) > db.foo.insert({test:"test1"})
      Inserted 1 record(s) in 5ms
      test@test:PRIMARY(2.4.8) >
      

      Without exiting the shell, it was trying to speak 2.5.5 even though the server was now 2.4.8

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: