When villages and caves spawn together, bad things happen. Sometimes the villages generate large amounts of land right over the ravines and caves, which solves the issue, however this is not always the case. This prevents villagers from getting to various buildings, and it just looks bad in general. This also allows zombies to spawn in caves, then walk out and pursue villagers.
To reproduce, simply go from village to village until you see that a cave or ravine has destroyed part of a village.
Possible solutions include:
Having all villages create their own terrain in the face of unfriendly natural terrain, as some already do.
Prevent caves and ravines from surfacing near villages.
Prevent villages from spawning on surfaced caves and ravines
Thank you for your report!
We're actually already tracking this issue in MC-140383, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki