No water heater will last forever. That said, you can reduce the risk of needing replacement sooner than expected by taking care of plumbing repairs ASAP.