Was the Korean war a success or failure?

It was a success what they were in the war for was to fulfill their containment policy. it said that they could keep communism but they weren't going to allow it to spread.