In-depth lesson · Limit overrun
Typical fixes
Every point the Limit overrun reports back under this heading, best-backed first, each with the reports it is seen in.
-
Enforce limits and duplicate checks atomically, using a lock or a database unique constraint in the same step as the write.
Seen in 15 reports
-
Bind one-time codes and verification results to a single request and invalidate them after use.
Seen in 3 reports
-
Hold an open file handle or use no-follow opens between the check and the use of a path.
Seen in 3 reports
-
Take the cache lock around every mutation and refcount change of shared structures.
Seen in 3 reports
-
Make payment and retest processing idempotent so a repeated request cannot trigger a second payment.
-
Copy shared memory before validating and converting it.
-
Add database-level constraints to prevent duplicate names and cyclic relationships.
-
Enforce subscriber and workspace limits on the server rather than only in the interface.
-
Consume authorisation codes and refresh tokens atomically so only one token pair is issued.
Seen in 1 report
-
Remove approvals synchronously when a new commit is pushed.
Seen in 1 report
-
Do not accept workloads until policy enforcement is fully active.
Seen in 1 report
-
Sanitise user-controlled identifiers before using them in file paths.