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

db.group fails on a certain dataset

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.1
    • MapReduce
    • None
    • Ubuntu 11.10, 11.04 64 Bit
    • Linux

    Description

      This operation fails constantly, I've tried to repair using different methods - it's definitely does not help and the dataset does not seem to be an issue.

      Here's the stack trace:

      OperationFailure: command SON([('group', {'$keyf': Code('\nfunction (doc) {\n return

      { year: doc.timestamp.substring(0, 4),\n month: doc.timestamp.substring(4, 6),\n day: doc.timestamp.substring(6),\n event: doc.event }

      ;\n}\n', {}), '$reduce': Code("\nfunction (doc, out) {\n out.total += doc.total;\n for (var key in doc.tags) {\n if ('names' in doc && key in doc.names)

      {\n out.names[key] = doc.names[key];\n }

      \n if (key in out.tags)

      {\n out.tags[key] += doc.tags[key];\n }

      else

      {\n out.tags[key] = doc.tags[key];\n }

      \n }\n}\n", {}), 'ns': u'statscounters', 'cond': {'a': ObjectId('4f1814c3ba8a48321b0037c5'), 'timestamp': {'$lte': '20120324', '$gte': '20120224'}}, 'initial': {'total': 0, 'names': {}, 'tags': {}}})]) failed: exception: Invalid BSONObj size: 20517274 (0x9A113901) first element: 0: { year: "2012", month: "02", day: "24", event: "sent", total: 18.0, names:

      { betaprogram_signup_email: "betaprogram-signup-email", gluster_verification: "gluster-verification", gluster_forgot_password: "gluster-forgot-password", forgot_password: "forgot-password", gluster: "gluster", signup_email: "signup-email", ash_forgot_password: "ash-forgot-password", ash: "ash", betaprogram: "betaprogram", verification: "verification", foobar_invite_person: "foobar-invite-person", betaprogram_provision_email: "betaprogram-provision-email", foobar: "foobar", abinash_invite_person: "abinash-invite-person", invite_person: "invite-person", provision_email: "provision-email", abinash: "abinash", welcome_email: "welcome-email", betaprogram_welcome_email: "betaprogram-welcome-email" }

      , tags:

      { betaprogram_signup_email: 6.0, gluster_verification: 3.0, gluster_forgot_password: 1.0, forgot_password: 3.0, gluster: 4.0, signup_email: 6.0, ash_forgot_password: 2.0, ash: 2.0, betaprogram: 10.0, verification: 3.0, foobar_invite_person: 1.0, betaprogram_provision_email: 2.0, foobar: 1.0, abinash_invite_person: 1.0, invite_person: 2.0, provision_email: 2.0, abinash: 1.0, welcome_email: 2.0, betaprogram_welcome_email: 2.0 }

      }

      We can provide a dataset per request, won't attach it here as it's customers stats data that we can not share.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mailgun Ev Kontsevoy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: