Finite length effects in Taylor-Couette flow