Updated description by @unknown
Steps to reproduce
Build a village across 3 aligned chunks (A, B, C) as follows: (or use
)
Place a bed and workstation in chunk A, then spawn a villager and let it link.
Place a bed in chunk C and a workstation in chunk B. This workstation should be a different type than the workstation in chunk A. Again, spawn a villager and let it link.
Trade with the villager who works in chunk B to lock in his profession.
Place bed in chunk B, then spawn a villager and let it link.
Set time to night and allow the villagers to get to their beds.
Fence off chunk A so that the villager who sleeps there cannot wander out of the chunk.
Move away from the village in the chunk C --> chunk A direction until only chunk A is within simulation distance and chunks B and C are not.
Wait at least 25 minutes.
Walk back to the middle of the village.
Expected result
The locked-profession villager keeps the workstation in chunk B.
Actual result
The villager who sleeps in chunk B takes the workstation in chunk B.
Explanation
Steps (3-4) make the villager in chunk A the only villager who is simulated (ticked). Step (5) drops the other villagers from the villager dwellers list. Step (6) re-adds them to the dwellers list. Since the unemployed villager in B is re-added before the villager in C, he links to the workstation in B before its original owner has the chance.
Notes on gameplay impact:
Steps (4-6) occur naturally in a normal game context if a player spends time mining, building, etc. at a certain distance from a village.
This bug occurs in a similar way and sometimes in conjunction with MCPE-47212. The other bug referred to in the original description below has been resolved as a duplicate of that one.
Original description
Problem: In our man made village (See MCPE-43070 for the issue relating to this) villagers have started taking up jobs that others already have, leading them to not letting others work, and resupply their trades. For example we have one grindstone, and one smithing table, but we have two weapon smiths, and two tool smiths, and they both appeared after trading with the first of each, preventing the originals from resupplying. It's an annoying issue, since we had both the original weapon and tool smith level 3, but can no longer level them up, since their trades can't be resupplied. We could place more stations down, but we don't want more of each.
Steps to Reproduce: Since I'm not sure of the true cause, please see the above issue about villager overpopulation, and see if it has anything to do with it
Linked issues
is duplicated by 10
relates to 2
Attachments
Comments 29

I have seen problems like this happen in my experimental world when the villager's beds are separated too far from their workplaces. I would suggest, perhaps as an experiment, watching to see which villagers have beds more than 16 blocks (I'm not sure of the number) from their workplaces, providing a closer bed, and breaking the distant one, in that order. Wait for them to claim/use both the bed and workplace block before moving on to the next one. I suspect that those who are using the same workplace block will then sort themselves out, choosing another available workplace.
I'm not saying that this is how it's supposed to work, because I don't know what the designers intended. But it might help you get ready for 1.11 before it arrives.
P.S. The issue seems to be that there are ranges within which a villager can detect a bed and a workplace block. When it wanders, it stays within range of one or the other of them, but sometimes it can get closer to one and fall out of range of the other. At that point the other block can be taken away from it by another village looking for that type of block. Having the bed and workplace block close to each other minimizes the chance of that situation happening.
I have seen problems like this happen in my experimental world when the villager's beds are separated too far from their workplaces. I would suggest, perhaps as an experiment, watching to see which villagers have beds more than 16 blocks (I'm not sure of the number) from their workplaces, providing a closer bed, and breaking the distant one, in that order. Wait for them to claim/use both the bed and workplace block before moving on to the next one. I suspect that those who are using the same workplace block will then sort themselves out, choosing another available workplace.
I'm not saying that this is how it's supposed to work, because I don't know what the designers intended. But it might help you get ready for 1.11 before it arrives.
P.S. The issue seems to be that there are ranges within which a villager can detect a bed and a workplace block. When it wanders, it stays within range of one or the other of them, but sometimes it can get closer to one and fall out of range of the other. At that point the other block can be taken away from it by another village looking for that type of block. Having the bed and workplace block close to each other minimizes the chance of that situation happening.
@GoldenHelmet In the current version on Windows 10 I have villagers randomly unlinking from their stations and then causing all of the villagers with the same trade to unlink. There is nothing I have done to cause this. All of my villagers have been traded with, are 1-block-adjacent to their workstations in a straight line and are locked in 2 blocks standing on water inside a trading hall.
The issue comes up approximately every 3 Minecraft days where one group (a particular trade) of villagers will all delink from their workstations, will show the frustration sign and will not restock or relink to their stations.
Not sure if there is another current ticket linked to these issues?
@GoldenHelmet In the current version on Windows 10 I have villagers randomly unlinking from their stations and then causing all of the villagers with the same trade to unlink. There is nothing I have done to cause this. All of my villagers have been traded with, are 1-block-adjacent to their workstations in a straight line and are locked in 2 blocks standing on water inside a trading hall.
The issue comes up approximately every 3 Minecraft days where one group (a particular trade) of villagers will all delink from their workstations, will show the frustration sign and will not restock or relink to their stations.
Not sure if there is another current ticket linked to these issues?