What is Training to failure?
Reaching the point in a set where you can't complete another rep with good form. Also called muscular failure.
Failure is the moment you finish the last rep of a set, try one more, and the bar won't move. It corresponds to 10 on the RPE scale.
Two kinds of failure are worth separating. Technical failure is the point where your form starts to break down. Absolute failure is the point where the weight won't move no matter what your form does. For safety, stopping at technical failure makes far more sense.
Should you take every set to failure?
No. For muscle growth, ending sets 1–3 reps short of failure gives results comparable to going to failure, and leaves you with much less fatigue. Someone who takes every set to failure can usually manage only about half as many reps on their third set as on their first.
Where failure makes sense: the last set of isolation exercises, machine exercises, and techniques like drop sets. Going to failure on heavy squats, deadlifts and bench presses is a risk, especially without a spotter.
Hitting failure once in a while has one benefit: it calibrates your RPE estimates. Take a weight you called "RPE 8" to failure and you may find you actually had five reps left.
In short, failure is a tool. Building your whole program around it does more harm than good for most people. Use it in moderation.