You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cbb265d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(config): reject unrepresentable derived dynamic-pool maximum
A minimum at the safe-integer boundary made the derived maximum unrepresentable
(2^53, outside safe integers); it sailed past schema parsing and failed at boot
with an unstructured RangeError from poolifier.
The resolver now rejects configuredMin >= Number.MAX_SAFE_INTEGER with a structured
ConfigurationValidationError (phase: 'schema', path worker.poolMinSize).
Tests: rename new block to the 'should ...' convention; cover the CPU-floor/cap
branches (min below/above the defaults), max-only 2 -> min 1, omitted processType,
and the safe-integer guard.
Fixes#2207
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ The `<assets-dir>/configurations` subdirectory is created by the runtime when pe
204
204
205
205
-**workerSet** ignores both bounds.
206
206
-**fixedPool** consumes only `poolMaxSize`; `poolMinSize` is ignored.
207
-
-**dynamicPool** requires both bounds with `poolMinSize < poolMaxSize`. When a bound is omitted, it is derived at validation time from the configured sibling bound and the CPU-based default (minimum derived from the maximum, maximum derived from the minimum, capped/floored at the CPU defaults). A maximum of 1 cannot be worked around (the minimum would be 0), and an explicit pair with `poolMinSize >= poolMaxSize` is rejected with a structured configuration error.
207
+
-**dynamicPool** requires both bounds with `poolMinSize < poolMaxSize`. When a bound is omitted, it is derived at validation time from the configured sibling bound and the CPU-based default (minimum derived from the maximum, maximum derived from the minimum, capped/floored at the CPU defaults). A maximum of 1 cannot be worked around (the minimum would be 0), a minimum above the safe-integer range cannot be raised to a valid maximum, and an explicit pair with `poolMinSize >= poolMaxSize` is rejected with a structured configuration error.
0 commit comments