{"record":{"id":"1e070f99e7f225cf","repo":"aeron-io/aeron","slug":"name-less-than-min-size-of-minvalue-value","errorCode":null,"errorMessage":"${name} less than min size of ${minValue}: ${value}","messagePattern":"(.+?) less than min size of (.+?): (.+?)","errorType":"validation","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"aeron-driver/src/main/java/io/aeron/driver/Configuration.java","lineNumber":2663,"sourceCode":"        }\n    }\n\n    /**\n     * Create a source identity for a given source address.\n     *\n     * @param srcAddress to be used for the identity.\n     * @return a source identity string for a given address.\n     */\n    public static String sourceIdentity(final InetSocketAddress srcAddress)\n    {\n        return srcAddress.getHostString() + ':' + srcAddress.getPort();\n    }\n\n    static void validateValueRange(final long value, final long minValue, final long maxValue, final String name)\n    {\n        if (value < minValue)\n        {\n            throw new ConfigurationException(\n                name + \" less than min size of \" + minValue + \": \" + value);\n        }\n\n        if (value > maxValue)\n        {\n            throw new ConfigurationException(\n                name + \" greater than max size of \" + maxValue + \": \" + value);\n        }\n    }\n}\n","sourceCodeStart":2645,"sourceCodeEnd":2674,"githubUrl":"https://github.com/aeron-io/aeron/blob/6d60124e15e35c11b49ba2e3c2c2858a09a18803/aeron-driver/src/main/java/io/aeron/driver/Configuration.java#L2645-L2674","documentation":"Generic lower-bound check in Aeron driver Configuration.validateValueRange: a named long configuration value is below its allowed minimum. The driver rejects the configuration with ConfigurationException at startup/validation time.","triggerScenarios":"Any driver configuration option routed through validateValueRange (e.g. term buffer lengths, window sizes) given a value smaller than the documented minimum, typically via context setters or aeron.driver.* system properties.","commonSituations":"Setting termBufferLength or initialWindowLength below Aeron's minimum (e.g. 64KB term buffer, or window smaller than MTU-sized minimums) when trying to shrink memory footprint.","solutions":["Raise the value to at least the stated minimum in the message","Use Configuration default values instead of hand-picked small values","Check the corresponding public static MIN_* constant in Configuration for the exact floor"],"exampleFix":"// before\nctx.publicationTermWindowLength(1024); // below min -> ConfigurationException\n// after\nctx.publicationTermWindowLength(Configuration.publicationTermWindowLength()); // validated default","handlingStrategy":"validation","validationCode":"if (value < Configuration.minValueFor(name)) { throw new IllegalArgumentException(name + \" below minimum\"); } // or compare against the documented MIN_* constant","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Compare against Configuration's MIN_* constants before setting","Prefer defaults when unsure","Wrap driver context construction in a config test"],"tags":["configuration","validation","bounds","aeron-driver"],"backgroundTag":"value-out-of-range","analyzedSha":"6d60124e15e35c11b49ba2e3c2c2858a09a18803","analyzedAt":"2026-09-12T11:17:07.683Z","contentChangedAt":"2026-09-12T11:17:07.683Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}