TEZ-1034. Shuffling can sometimes hang with duplicate inputs for the same index. (Bikas Saha via hitesh)