Ergodicity breaking transition in finite disordered spin chains