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

Add listCollections command functionality to 2.6 shell & client

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.8
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Minor Change

      Several places in the code make use of the listCollections functionality of the server C++ driver:

      • shell functionality
      • mongodump
      • cloner
      • replica set rollback
      • sharding migrate and shardCollection commands

      These areas will fail to function correctly if the source is a 2.6 mongod and the target is a 2.8 mongod running with the WiredTiger storage engine. The code attempts to scan system.namespaces with a query. Since the failure will be silent (it simply looks like there are no collections on the target), we should fix this in the 2.6 branch by adding support for the new 2.8 listCollections command to the 2.6 server C++ client.

            milkie@mongodb.com Eric Milkie
            milkie@mongodb.com Eric Milkie
            0 Vote for this issue
            8 Start watching this issue