I am a big time Glock proponent, and consider them "Best of Breed", but nothing "always works".
It is a mechanical device, therefore it is subject to failure.
Anyone who shoots a lot you will eventually see a malfunction with almost any firearm . I've shot many thousands of rounds through Glocks and have experienced malfunctions only rarely. Most were probably ammo related. Nothing works 100% but I think Glocks set the standard for reliability in pistols.