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

pytpcc fails against 4.2.7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When I try to run pytpcc from https://github.com/mongodb-labs/py-tpcc against server 4.2.7 server it fails with

      ./tpcc.py --config mconfig --warehouses 100 --no-load mongodb
      2020-06-08 14:44:53,679 [<module>:245] INFO : Initializing TPC-C benchmark using MongodbDriver
      2020-06-08 14:45:53,681 [<module>:282] INFO : Final Results
      2020-06-08 14:45:53,681 [<module>:283] INFO : Threads: 1
      {'DELIVERY': 317, 'ORDER_STATUS': 353, 'STOCK_LEVEL': 349, 'PAYMENT': 3581, 'NEW_ORDER': 3751}
      Traceback (most recent call last):
       File "./tpcc.py", line 284, in <module>
       logging.info(results.show(load_time, driver, args['clients']))
       File "/home/vadim/scripts/py-tpcc/pytpcc/util/results.py", line 251, in show
       driver.save_result(result_doc)
       File "/home/vadim/scripts/py-tpcc/pytpcc/drivers/mongodbdriver.py", line 1146, in save_result
       self.client.test.results.save(self.result_doc)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 3158, in save
       to_save, True, check_keys, manipulate, write_concern)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 612, in _insert
       bypass_doc_val, session)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 600, in _insert_one
       acknowledged, _insert_command, session)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 1491, in _retryable_write
       return self._retry_with_session(retryable, func, s, None)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
       return func(session, sock_info, retryable)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 595, in _insert_command
       retryable_write=retryable_write)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/pool.py", line 618, in command
       self._raise_connection_failure(error)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/pool.py", line 613, in command
       user_fields=user_fields)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/network.py", line 129, in command
       codec_options, ctx=compression_ctx)
       File "/usr/local/lib/python2.7/dist-packages/pymongo/message.py", line 707, in _op_msg
       flags, command, identifier, docs, check_keys, opts)
      bson.errors.InvalidDocument: key '$_internalSplitPipeline' must not start with '$'
      

       

      it works without errors against 4.2.3 version

       

       

        Attachments

          Activity

            People

            Assignee:
            backlog-server-triage Backlog - Triage Team
            Reporter:
            vadim@percona.com Vadim Tkachenko
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: