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

"The key is too long" after upgrading from 3.4 to 3.6

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.21, 3.6.13
    • Component/s: WiredTiger
    • Labels:
      None
    • ALL
    • Hide

      Upgrade from 3.4.21 to 3.6 and run a update query.

      Show
      Upgrade from 3.4.21 to 3.6 and run a update query.

      After upgrading from 3.4 to 3.6 i'm getting the following errors when running simple update on some documents:

       

      Fatal error: Uncaught MongoDB\Driver\Exception\BulkWriteException: The key is too long in /var/www/vendor/mongodb/mongodb/src/Operation/Update.php:179
      Stack trace:
      #0 /var/www/vendor/mongodb/mongodb/src/Operation/Update.php(179): MongoDB\Driver\Server->executeBulkWrite('dbname.server...', Object(MongoDB\Driver\BulkWrite), Array)
      #1 /var/www/vendor/mongodb/mongodb/src/Operation/UpdateOne.php(105): MongoDB\Operation\Update->execute(Object(MongoDB\Driver\Server))
      #2 /var/www/vendor/mongodb/mongodb/src/Collection.php(1033): MongoDB\Operation\UpdateOne->execute(Object(MongoDB\Driver\Server))
      #3 /var/www/inc/process.php(59): MongoDB\Collection->updateOne(Array, Array, Array)
      #4 /var/www/process_queue.php(101): process_data(Object(MongoDB\Model\BSONDocument))
      #5 {main}
      thrown in /var/www/vendor/mongodb/mongodb/src/Operation/Update.php on line 179

       

      The updateOne command is updateOne({'_id': mongid}, {'$set': {'status': 'OK'}})

      Downgrading to 3.4 solves this issue.

      PHP mongodb version 1.5.5

      db version v3.4.21
      git version: ba2e818de44c9a331ce09a624780a2bd841cf6e4
      OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017
      allocator: tcmalloc
      modules: none
      build environment:
      distmod: ubuntu1604
      distarch: x86_64
      target_arch: x86_64

       

      Running on 3 dedicated servers in a replicaset (64gb ram, 1tb ssd, 8 cores).

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            vincentvm Vincent van Megen
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: