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

Mapreduce implementation call dropCollection for MRInline

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.1, 2.6.3
    • Component/s: MapReduce
    • Environment:
      ArchLinux 3.8.6-1-ARCH
      mongodb 2.4.1-2
    • Storage Execution
    • Linux
    • Hide

      Execute an mapreduce command with MRInline object for output argument.

      Show
      Execute an mapreduce command with MRInline object for output argument.

      After last update our mapreduce task was fail with last error "no collection name".
      I'm study source and find that dropCollection called in src/mongo/db/commands/mr.cpp from code that refer to https://jira.mongodb.org/browse/SERVER-8234 patch (c0b7158e31d10155a1285f989beae7bb03a5768e).
      Strange, but this appear only on C++ driver. Through stack prior user assert is:

      Thu Apr 11 10:28:37.217 Backtrace:                                                                                                                                                                                                                                             
      0xad7c16 0x6d17f4 0x7f0ba3b17240 0x7f0ba3b171c9 0x7f0ba3b185c8 0x6d129a 0x7f0ba4401b26 0x7f0ba4401b53 0x7f0ba4401dc6 0x719a6c 0x7d3d56 0x7dca02 0x7de386 0x7fd2b8 0x7fdaa2 0x7fe546 0x8ee029 0x8f1524 0x8a48a9 0x6e1b1b                                                        
       build/linux2/normal/mongo/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xad7c16]                                                                                                                                                                                              
       build/linux2/normal/mongo/mongod(_ZN5mongo10abruptQuitEi+0x254) [0x6d17f4]                                                                                                                                                                                                    
       /usr/lib/libc.so.6(+0x35240) [0x7f0ba3b17240]                                                                                                                                                                                                                                 
       /usr/lib/libc.so.6(gsignal+0x39) [0x7f0ba3b171c9]                                                                                                                                                                                                                             
       /usr/lib/libc.so.6(abort+0x148) [0x7f0ba3b185c8]                                                                                                                                                                                                                              
       build/linux2/normal/mongo/mongod(_ZN5mongo11myterminateEv+0x4a) [0x6d129a]                                                                                                                                                                                                    
       /usr/lib/libstdc++.so.6(+0x5eb26) [0x7f0ba4401b26]                                                                                                                                                                                                                            
       /usr/lib/libstdc++.so.6(+0x5eb53) [0x7f0ba4401b53]                                                                                                                                                                                                                            
       /usr/lib/libstdc++.so.6(__cxa_rethrow+0x46) [0x7f0ba4401dc6]                                                                                                                                                                                                                  
       build/linux2/normal/mongo/mongod(_ZN5mongo20DBClientWithCommands14dropCollectionERKSsPNS_7BSONObjE+0x1ec) [0x719a6c]                                                                                                                                                          
       build/linux2/normal/mongo/mongod(_ZN5mongo2mr5State19dropTempCollectionsEv+0x26) [0x7d3d56]                                                                                                                                                                                   
       build/linux2/normal/mongo/mongod(_ZN5mongo18ScopeGuardImplBase11SafeExecuteINS_18ObjScopeGuardImpl0INS_2mr5StateEMS4_FvvEEEEEvRT_+0x32) [0x7dca02]                                                                                                                            
       build/linux2/normal/mongo/mongod(_ZN5mongo2mr16MapReduceCommand3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0xe06) [0x7de386]                                                                                                                                             
       build/linux2/normal/mongo/mongod(_ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x28) [0x7fd2b8]                                                                                                                                            
       build/linux2/normal/mongo/mongod(_ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x602) [0x7fdaa2]                                                                                                                                     
       build/linux2/normal/mongo/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x246) [0x7fe546]                                                                                                                  
       build/linux2/normal/mongo/mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x29) [0x8ee029]                                                                                                         
       build/linux2/normal/mongo/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0x6a4) [0x8f1524]                                                                                                                                                          
       build/linux2/normal/mongo/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x709) [0x8a48a9]                                                                                                                                              
       build/linux2/normal/mongo/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xbb) [0x6e1b1b] 
      

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            blake-r Blake-R
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: