The Dodgers avoided their first four-game losing streak of the year Tuesday night, rallying from three runs down to beat the resurgent Padres, 8-6.