Sharding not enabled on MongoDB

XMLWordPrintableJSON

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

      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
            Reporter:
            Muhammad Shawaiz Ghazanfar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: