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

Sharding not enabled on MongoDB

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Kubernetes Cluster using bitnami helm,mongo 6.0.1
    • Server Triage

    Description

      Problem Statement/Rationale

      recently the sh.enableSharding() is working on a database which i have created but by applying sh.ShardCollection() it displays "MongoServerError: sharding not enabled for db".

      Steps to Reproduce

      Create any db ,then apply sh.enableSharding() and after that  create collection and apply sh.shardcollection() with the help of shard key.

      Expected Results

      Shard Key would be enable on my shardcollection.

      Actual Results

      "MongoServerError: sharding not enabled for db".

      Additional Notes

       

      Attachments

        Activity

          People

            yuan.fang@mongodb.com Yuan Fang
            mohammad.shawaiz97@gmail.com Muhammad Shawaiz Ghazanfar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: