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

sharded count that has can't have results causes assertion WAS: "uncaught exception: count failed:" using sharded collections. | "db assertion failure"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: Querying, Sharding
    • Environment:
      Ubuntu 10.10
      MongoDB 2.0.1
       - Sharding 6 replicaSets(2 datanodes + 1 arbiter / sets).
    • Linux

      I would like to know the details about un error occurred when a `count` request is given to the sharded collections like below.

      mongos:[2.0.1] > db.external_data.find({user_id: 8, checked_at: {$gte: 1320211921, $lte: 1320211421}}).count()
      Tue Nov 22 20:36:33 uncaught exception: count failed: {
              "assertion" : "assertion s/commands_public.cpp:445",
              "errmsg" : "db assertion failure",
              "ok" : 0
      }
      

      It seems like this error occurs when `lte` is order than `gte`.
      In this case the `count` request returns 0 or this error arbitrarily even if the query is not different.

      // I get this error specially via mongoshell.

      Regards,

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            sawanoboriyu@higanworks.com Yukihiko Sawanobori
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: