Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2072

MR in Agg: Remove in-line mapReduce execution statistics

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.10.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      See DRIVERS-773 for details.

      This server change in SERVER-44635 causes the following pymongo test failures:

       [2019/12/12 13:27:47.888] ERROR [0.203s]: test_map_reduce (test_collection.TestCollection)
       [2019/12/12 13:27:47.888] ----------------------------------------------------------------------
       [2019/12/12 13:27:47.888] Traceback (most recent call last):
       [2019/12/12 13:27:47.888]   File "/data/mci/354f7b1c62a143a9c6a1b6b31153dc54/src/test/test_collection.py", line 2093, in test_map_reduce
       [2019/12/12 13:27:47.888]     self.assertEqual(6, full_result["counts"]["emit"])
       [2019/12/12 13:27:47.888] KeyError: 'counts'
       [2019/12/12 13:27:47.888] ======================================================================
       [2019/12/12 13:27:47.888] ERROR [0.068s]: test_map_reduce_w_custom_type (test_custom_types.TestCollectionWCustomType)
       [2019/12/12 13:27:47.888] ----------------------------------------------------------------------
       [2019/12/12 13:27:47.888] Traceback (most recent call last):
       [2019/12/12 13:27:47.888]   File "/data/mci/354f7b1c62a143a9c6a1b6b31153dc54/src/test/test_custom_types.py", line 666, in test_map_reduce_w_custom_type
       [2019/12/12 13:27:47.888]     self.assertEqual(3, full_result["counts"]["emit"])
       [2019/12/12 13:27:47.888] KeyError: 'counts'
       [2019/12/12 13:27:47.888] ======================================================================
       [2019/12/12 13:27:47.888] ERROR [0.015s]: test_map_reduce_out (test_read_concern.TestReadConcern)
       [2019/12/12 13:27:47.888] ----------------------------------------------------------------------
       [2019/12/12 13:27:47.888] Traceback (most recent call last):
       [2019/12/12 13:27:47.888]   File "/data/mci/354f7b1c62a143a9c6a1b6b31153dc54/src/test/test_read_concern.py", line 127, in test_map_reduce_out
       [2019/12/12 13:27:47.888]     out='output_collection'))
       [2019/12/12 13:27:47.888]   File "/data/mci/354f7b1c62a143a9c6a1b6b31153dc54/src/pymongo/collection.py", line 3327, in __next__
       [2019/12/12 13:27:47.888]     raise TypeError("'Collection' object is not iterable")
       [2019/12/12 13:27:47.888] TypeError: 'Collection' object is not iterable
      
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: