Peter Beinart has some interesting reporting on why Chuck Hagel performed so poorly. Hagel was told to be as non-confrontational as possible and sent to pacify the lions with carrots:
All nominees are warned not to allow their hearings to turn combative, but a source close to Hagel suggests that the staffers prepping Hagel were particularly adamant on this score. "They expected [Jim] Inhofe, [John] McCain and especially [Ted] Cruz to come after him, and they said, 'Be a tank--don't rise and attack back.'" An aide involved in the Hagel preparations says that's overblown, but acknowledges that it was made clear that as a nominee, Hagel could not allow himself to be drawn into the kind of feisty exchange that Hillary Clinton had with Wisconsin Republican Ron Johnson during last month's hearings on Benghazi. This was considered particularly important in winning over those relatively moderate Senate Republicans like Tennessee's Lamar Alexander and Alaska's Lisa Murkowski, who administration aides believe like Hagel personally, and can be convinced to vote for him, or at least to oppose a Republican filibuster.
I usually avoid the all-too-common tactic of describing every Obama flub as some foretold advance in the long game. But I think the point here was to avoid a fumble. As Beinart says, it may not have been the best exhibition of Obama's second-term foreign policy, but it probably got him confirmed. If Hagel has to suffer hectoring by John McCain, so be it.
On a sidenote I really wish we would drop this discomfort with politicians getting "angry." Anger is human and sometimes wholly appropriate. My problem with John McCain has never been that he's angry, but that he's vindictive.