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

explain command for cluster write and cluster aggregate can be invoked on non-shardsvr mongod

    • Fully Compatible
    • ALL
    • 5
    • 3

      SERVER-63495 linked cluster find, aggregate, getMore, insert, update and delete into mongod. It relies on calling Impl::checkCanRunHere() to prevent these commands from being run on a non-shardsvr mongod. However, currently this method is not called in the explain() method for ClusterWriteCmd and ClusterPipelineCommandBase so right now the explain command for cluster write and cluster aggregate can be invoked on non-shardsvr mongod. As shown in BF-26337, running it causes the mongod to hit a segmentation fault.

            Assignee:
            wenqin.ye@mongodb.com Wenqin Ye
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: