Principle+of+collective+security

Definition: If one nation was under threat, the others would have to defend it even if it was of no interest to themselves and regardless of the outcome.

Effect: It obliges nations to give up their freedom of action and also nations might be forced to go to war against other nations with whom they might have a good relationship with.

therefore, was it effective or not?