Cavitation is when