Steps to reproduce
Create a new world.
/summon minecart (boat also works)
/summon villager
Make sure the villager gets pulled into the boat or minecart.
(optional) break the boat or minecart
/setblock ~~~ bed
/effect @s bad_omen
Break the bed or sleep in the bed.
Expected result
The raid bar goes away when you break the bed or sleep in it, because the village gets destroyed when its only bed is unlinked.
Observed result
The raid bar pauses and never goes away. It does not go away even if you kill the villager and destroy everything afterward. The village data does not get deleted if the unlinking villager has ever ridden in a boat or minecart, even if it is not riding at the time the village is created or destroyed, and even if you have relogged since it last had a ride. (You can view the residual village data showing 0 dwellers, raid boundaries, and raid progress, with tools like UME.)
A raid started. I broke the nearby beds to cancel the raid. I've launched other raids, both successful and failed to see if it would clear it. I even set the world to peaceful but the raid bar remains....
I accidently started the raid when visiting my villager crop farm, It has a single bed. I broke the bed before the first enemy spawned. The raid bar has been persistent ever since. I've tried doing a testfor to find any enemies, setting to peaceful AND traveling around the area and below the area to ensure they don't remain, and also removed any beds in a 200 block radius. Simulation distance is 4. I've also completed and failed additional raids in the area
I'm stumped as to why the raid bar won't go away.