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

Sharding not enabled on MongoDB

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Kubernetes Cluster using bitnami helm,mongo 6.0.1
    • Server Triage

      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

       

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

              Created:
              Updated:
              Resolved: