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

shard selection code asserts for certain unsatisfiable queries

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL

      m30999| Sun Dec 25 12:24:48 [conn1] Assertion failure todo.size() client/parallel.cpp 672
      m30999| 0x104589a75 0x104587f3b 0x104596df9 0x1046b5b23 0x1046ca770 0x1046bc838 0x1046aa713 0x10498c533 0x1049e613b 0x1049febb7 0x1046a7eca 0x1046a9690 0x1046a96f2 0x1046a971d 0x1055eb460 0x7fff8b3688bf 0x7fff8b36bb75
      m30999| 0 mongos 0x0000000104589a75 _ZN5mongo15printStackTraceERSo + 37
      m30999| 1 mongos 0x0000000104587f3b _ZN5mongo12sayDbContextEPKc + 123
      m30999| 2 mongos 0x0000000104596df9 _ZN5mongo8assertedEPKcS1_j + 409
      m30999| 3 mongos 0x00000001046b5b23 _ZN5mongo27ParallelSortClusteredCursor9startInitEv + 5875
      m30999| 4 mongos 0x00000001046ca770 _ZN5mongo27ParallelSortClusteredCursor8fullInitEv + 24
      m30999| 5 mongos 0x00000001046bc838 _ZN5mongo27ParallelSortClusteredCursor5_initEv + 74
      m30999| 6 mongos 0x00000001046aa713 _ZN5mongo15ClusteredCursor4initEv + 51
      m30999| 7 mongos 0x000000010498c533 _ZN5mongo13ShardStrategy7queryOpERNS_7RequestE + 1789
      m30999| 8 mongos 0x00000001049e613b _ZN5mongo7Request7processEi + 595
      m30999| 9 mongos 0x00000001049febb7 _ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 243
      m30999| 10 mongos 0x00000001046a7eca _ZN5mongo3pms9threadRunEPNS_13MessagingPortE + 1546
      m30999| 11 mongos 0x00000001046a9690 _ZN5boost3_bi5list1INS0_5valueIPN5mongo13MessagingPortEEEEclIPFvS5_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 78
      m30999| 12 mongos 0x00000001046a96f2 _ZN5boost3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS0_5list1INS0_5valueIS4_EEEEEclEv + 92
      m30999| 13 mongos 0x00000001046a971d _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS2_5list1INS2_5valueIS6_EEEEEEE3runEv + 37
      m30999| 14 libboost_thread-mt.dylib 0x00000001055eb460 thread_proxy + 160
      m30999| 15 libsystem_c.dylib 0x00007fff8b3688bf _pthread_start + 335
      m30999| 16 libsystem_c.dylib 0x00007fff8b36bb75 thread_start + 13

      m30999| Sun Dec 25 12:26:05 [conn1] Assertion failure !empty() s/../db/queryutil.h 82
      m30999| 0x105c1aa75 0x105c18f3b 0x105c27df9 0x105ff973d 0x105be0122 0x106003702 0x105fe3907 0x105d46509 0x105d5b770 0x105d4d838 0x105d3b713 0x10601d533 0x10607713b 0x10608fbb7 0x105d38eca 0x105d3a690 0x105d3a6f2 0x105d3a71d 0x106c81460 0x7fff8b3688bf
      m30999| 0 mongos 0x0000000105c1aa75 _ZN5mongo15printStackTraceERSo + 37
      m30999| 1 mongos 0x0000000105c18f3b _ZN5mongo12sayDbContextEPKc + 123
      m30999| 2 mongos 0x0000000105c27df9 _ZN5mongo8assertedEPKcS1_j + 409
      m30999| 3 mongos 0x0000000105ff973d _ZNK5mongo10FieldRange3minEv + 77
      m30999| 4 mongos 0x0000000105be0122 _ZNK5mongo13FieldRangeSet11indexBoundsERKNS_7BSONObjEi + 5998
      m30999| 5 mongos 0x0000000106003702 _ZNK5mongo17FieldRangeSetPair20singleKeyIndexBoundsERKNS_7BSONObjEi + 70
      m30999| 6 mongos 0x0000000105fe3907 _ZNK5mongo12ChunkManager17getShardsForQueryERSt3setINS_5ShardESt4lessIS2_ESaIS2_EERKNS_7BSONObjE + 1579
      m30999| 7 mongos 0x0000000105d46509 _ZN5mongo27ParallelSortClusteredCursor9startInitEv + 4313
      m30999| 8 mongos 0x0000000105d5b770 _ZN5mongo27ParallelSortClusteredCursor8fullInitEv + 24
      m30999| 9 mongos 0x0000000105d4d838 _ZN5mongo27ParallelSortClusteredCursor5_initEv + 74
      Sun Dec 25 12:26:05 uncaught exception: error:

      { "$err" : "assertion s/../db/queryutil.h:82", "code" : 0 }

      m30999| 10 mongos 0x0000000105d3b713 _ZN5mongo15ClusteredCursor4initEv + 51failed to load:
      jstests/sharding/shard7.js
      m30999| 11 mongos 0x000000010601d533 _ZN5mongo13ShardStrategy7queryOpERNS_7RequestE + 1789
      m30999| 12 mongos 0x000000010607713b _ZN5mongo7Request7processEi + 595
      m30999| 13 mongos 0x000000010608fbb7 _ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 243
      m30999| 14 mongos 0x0000000105d38eca _ZN5mongo3pms9threadRunEPNS_13MessagingPortE + 1546
      m30999| 15 mongos 0x0000000105d3a690 _ZN5boost3_bi5list1INS0_5valueIPN5mongo13MessagingPortEEEEclIPFvS5_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 78
      m30999| 16 mongos 0x0000000105d3a6f2 _ZN5boost3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS0_5list1INS0_5valueIS4_EEEEEclEv + 92
      m30999| 17 mongos 0x0000000105d3a71d _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS2_5list1INS2_5valueIS6_EEEEEEE3runEv + 37
      m30999| 18 libboost_thread-mt.dylib 0x0000000106c81460 thread_proxy + 160
      m30999| 19 libsystem_c.dylib 0x00007fff8b3688bf _pthread_start + 335

      test forthcoming

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: