My sensei has a saying: "Partner first, technique second."
If the uke yelps in pain before the technique is complete, you let the technique go. When your partner taps, the technique is over.
Some people have come to our dojo expecting to crank on people and inflict pain for pain's sake. It isn't tolerated very well, and those people are asked not to come back.