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

Smoke.py with PyMongo 3.0.1 fails to run certain tests

    • Fully Compatible
    • ALL
    • BUILD 3 05/15/15

      Failed test:
      https://mci.10gen.com/task/mongodb_mongo_master_windows_64_34b853ed0566a3bbffcd825191b9000de331bddc_15_04_27_15_34_07_jsCore_small_oplog_rs_windows_64/0?type=ALL#L97

      Successful test:
      https://mci.10gen.com/task/mongodb_mongo_master_windows_64_54c25da33ec7270295c8948f6a51376ec4fd278c_15_04_23_20_04_07_jsCore_small_oplog_rs_windows_64/0?type=ALL

      The error:

       [2015/04/27 17:42:17.378] timed out
       [2015/04/27 17:42:17.378] Exception AttributeError: "'Cursor' object has no attribute '_Cursor__id'" in <bound method Cursor.__del__ of <pymongo.cursor.Cursor object at 0x00000000021695C0>> ignored
       [2015/04/27 17:42:17.380] Cannot catch signals on Windows
       [2015/04/27 17:42:17.380] Creating dir: /data/db/sconsTests/
       [2015/04/27 17:42:17.380] running ./mongod.exe --port 27999 --dbpath /data/db/sconsTests/ --setParameter enableTestCommands=1 --httpinterface --replSet foo --oplogSize 511
       [2015/04/27 17:42:17.380] Creating dir: /data/db/sconsTestsSlave/
       [2015/04/27 17:42:17.380] running ./mongod.exe --port 28000 --dbpath /data/db/sconsTestsSlave/ --setParameter enableTestCommands=1 --httpinterface --replSet foo --oplogSize 511
       [2015/04/27 17:42:23.385] 0 tests succeeded
       [2015/04/27 17:42:23.385] 782 tests didn't get run
       [2015/04/27 17:42:23.385] replication ok for 0 collections
       [2015/04/27 17:42:23.956] timed out
       [2015/04/27 17:42:23.956] Traceback (most recent call last):
       [2015/04/27 17:42:23.956]   File "buildscripts/smoke.py", line 1448, in <module>
       [2015/04/27 17:42:23.956]     main()
       [2015/04/27 17:42:23.956]   File "buildscripts/smoke.py", line 1432, in main
       [2015/04/27 17:42:23.956]     run_tests(tests)
       [2015/04/27 17:42:23.956]   File "buildscripts/smoke.py", line 726, in run_tests
       [2015/04/27 17:42:23.956]     slave.start()
       [2015/04/27 17:42:23.956]   File "buildscripts/smoke.py", line 275, in start
       [2015/04/27 17:42:23.956]     for source in local.sources.find(fields=["syncedTo"]):
       [2015/04/27 17:42:23.956]   File "C:\Python27\lib\site-packages\pymongo\collection.py", line 929, in find
       [2015/04/27 17:42:23.956]     return Cursor(self, *args, **kwargs)
       [2015/04/27 17:42:23.956] TypeError: __init__() got an unexpected keyword argument 'fields'
       [2015/04/27 17:42:23.965] [shell.exec] Script finished with error: exit status 1
       [2015/04/27 17:42:23.965] Finished shell.exec in 15.921s
       [2015/04/27 17:42:23.965] Command failed: exit status 1
       [2015/04/27 17:42:23.965] Command failed: exit status 1
       [2015/04/27 17:42:23.965] Task completed - FAILURE.
      

      And I verified by hand the smoke.py command from the failed test with the same binaries and artifacts from MCI on a spawnhost with the default pymongo fails in the same way, after running easy_install --upgrade pymongo, it fails in the same way, and after running easy_install "pymongo<3.0" it runs to completion.

      I'm not sure if this is a bug in the tests, in smoke.py, or in pymongo.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: