{"record":{"id":"29887c0675a1b58f","repo":"apache/cassandra","slug":"be-positive","errorCode":null,"errorMessage":" be positive","messagePattern":" be positive","errorType":"validation","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/config/DatabaseDescriptor.java","lineNumber":1267,"sourceCode":"\n        conf.sai_options.validate();\n\n        List<ConsistencyLevel> progressBarrierCLsArr = Arrays.asList(ALL, EACH_QUORUM, LOCAL_QUORUM, QUORUM, ONE, NODE_LOCAL);\n        Set<ConsistencyLevel> progressBarrierCls = new HashSet<>(progressBarrierCLsArr);\n        if (!progressBarrierCls.contains(conf.progress_barrier_min_consistency_level))\n        {\n            throw new ConfigurationException(String.format(\"Invalid value for progress_barrier_min_consistency_level %s. Allowed values: %s\",\n                                                           conf.progress_barrier_min_consistency_level, progressBarrierCLsArr));\n        }\n\n        if (!progressBarrierCls.contains(conf.progress_barrier_default_consistency_level))\n        {\n            throw new ConfigurationException(String.format(\"Invalid value for.progress_barrier_default_consistency_level %s. Allowed values: %s\",\n                                                           conf.progress_barrier_default_consistency_level, progressBarrierCLsArr));\n        }\n\n        if (conf.native_transport_min_backoff_on_queue_overload.toMilliseconds() <= 0)\n            throw new ConfigurationException(\" be positive\");\n\n        if (conf.native_transport_min_backoff_on_queue_overload.toMilliseconds() >= conf.native_transport_max_backoff_on_queue_overload.toMilliseconds())\n            throw new ConfigurationException(String.format(\"native_transport_min_backoff_on_queue_overload should be strictly less than native_transport_max_backoff_on_queue_overload, but %s >= %s\",\n                                                           conf.native_transport_min_backoff_on_queue_overload,\n                                                           conf.native_transport_max_backoff_on_queue_overload));\n\n        if (conf.use_deterministic_table_id)\n            logger.warn(\"use_deterministic_table_id is no longer supported and should be removed from cassandra.yaml.\");\n\n        // run audit logging options through sanitation and validation\n        if (conf.audit_logging_options != null)\n            setAuditLoggingOptions(conf.audit_logging_options);\n\n        try\n        {\n            // Run through the validation by setting current values back to their setters, so we are sure that their values are valid.\n            // We are catching IllegalArgumentException and translating it to ConfigurationException to comply with\n            // rest of the logic in this method. These setters are also called in GCInspectorMXBean were IllegalArgumentException","sourceCodeStart":1249,"sourceCodeEnd":1285,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/config/DatabaseDescriptor.java#L1249-L1285","documentation":"native_transport_min_backoff_on_queue_overload must be a positive duration. DatabaseDescriptor throws this (notably terse, malformed) ConfigurationException ' be positive' when the minimum backoff is zero or negative.","triggerScenarios":"applySimpleConfig (via toolInitialization/applyAll) with native_transport_min_backoff_on_queue_overload set to 0 or a negative duration in cassandra.yaml.","commonSituations":"Operator sets min backoff to 0 thinking it disables backoff; unit typo producing a sub-millisecond value that truncates to <= 0ms.","solutions":["Set native_transport_min_backoff_on_queue_overload to a positive duration, e.g. 10ms","Ensure the duration unit suffix is correct (ms, s) so the value does not round to <= 0","Remove the setting to use the default"],"exampleFix":"// before (cassandra.yaml)\nnative_transport_min_backoff_on_queue_overload: 0ms\n// after\nnative_transport_min_backoff_on_queue_overload: 10ms","handlingStrategy":"validation","validationCode":"if (conf.native_transport_min_backoff_on_queue_overload.toMilliseconds() <= 0) throw new IllegalArgumentException(\"native_transport_min_backoff_on_queue_overload must be > 0\");","typeGuard":null,"tryCatchPattern":"try { DatabaseDescriptor.toolInitialization(); } catch (ConfigurationException e) { log.error(\"Bad native transport backoff: {}\", e.getMessage()); }","preventionTips":["Always give backoff durations an explicit positive value with unit","Note the cryptic ' be positive' message corresponds to this check","Prefer defaults when unsure"],"tags":["cassandra","configuration","native-transport"],"backgroundTag":"value-out-of-range","analyzedSha":"88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1","analyzedAt":"2026-09-10T07:29:22.284Z","contentChangedAt":"2026-09-10T07:29:22.284Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}