bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.97k stars 9.2k forks source link

bitnami Mongodb 5.0.7 MongoServerError: reshardCollection command not enabled #9903

Closed Alansyf closed 2 years ago

Alansyf commented 2 years ago

Name and Version

bitnami/mongodb-sharded:5.0

What steps will reproduce the bug?

helm install bitnami/mongodb-sharded:5.0.

MongoDB version: [direct: mongos] testshard1> db.version() 5.0.7

[direct: mongos] testshard1> sh.shardCollection("testshard1.test11", {"_id": 1}) { collectionsharded: 'testshard1.test11', ok: 1, '$clusterTime': { clusterTime: Timestamp({ t: 1650859351, i: 14 }), signature: { hash: Binary(Buffer.from("5c400bfa41f2a1b8f3acffc5a9d5d83193c566fe", "hex"), 0), keyId: Long("7067366190192001047") } }, operationTime: Timestamp({ t: 1650859351, i: 3 }) }

[direct: mongos] testshard1> sh.reshardCollection("testshard1.test11", {"_id": "hashed"}) MongoServerError: reshardCollection command not enabled

Are you using any custom parameters or values?

No

What is the expected behavior?

No response

What do you see instead?

[direct: mongos] testshard1> sh.reshardCollection("testshard1.test11", {"_id": "hashed"}) MongoServerError: reshardCollection command not enabled

Additional information

According to document here: https://www.mongodb.com/docs/manual/core/sharding-reshard-a-collection/, we should be able to execute the reshard command however it failed.

fmulero commented 2 years ago

Hi @Alansyf thanks for sharing it. QQ Are you testing the changes in this PR #9829?

Alansyf commented 2 years ago

Hi @Alansyf thanks for sharing it. QQ Are you testing the changes in this PR #9829?

No @fmulero . I am just verifying how resharding works in mongo 5.0.

fmulero commented 2 years ago

Hi @Alansyf I am trying to reproduce your issue before realising #9829 but I am not able to reproduce it. Are you able to reproduce your issue with those changes?

github-actions[bot] commented 2 years ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 2 years ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.