Morphia 2.2.10, Mongo driver 4.4.0, Save operation fails for could not extract shard key #2424
Unanswered
arivazhaganj
asked this question in
Q&A
Replies: 3 comments 3 replies
-
Your entity should have a mapped shard key property set before saving. Is that property missing or null? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Morphia would need that shard key, yes, so I would recommend upgrading to 2.3. |
Beta Was this translation helpful? Give feedback.
1 reply
-
For 2.2.x, there isn't I'm afraid. If you want sharding support, you'll need to upgrade. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With reference to similar issue discussed/reported: #1872
we are using Morphia 2.2.10 and Mongo driver 4.4.0. (currently app runs with compatilibity version of 4.0 of Mongo DB)
During upgrading mongo DB from 4.0 to 4.2, getting could not extract shard Key error.
We have sharded collection and we are trying to Save the sharded entity. Verified the sharded Entity holds value for the Shard Key.
But during Save operation, getting could not extract shard Key error.
Any help or suggestions to fix this?
Please help and share suggestions @evanchooly.
Beta Was this translation helpful? Give feedback.
All reactions