I have the same problem with my toilet. It happens at night there is such a hugh bang it is frightening. This house is over 20 years, in good condition, but has a flushometer and not a tank. Sometimes I have to hold the lever for a few seconds before it flushes.