{"record":{"id":"426cc38637e9f750","repo":"apache/cassandra","slug":"s-is-not-a-parsable-long-base10-for-s","errorCode":null,"errorMessage":"%s is not a parsable long (base10) for %s","messagePattern":"(.+?) is not a parsable long \\(base10\\) for (.+?)","errorType":"validation","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/db/compaction/unified/Controller.java","lineNumber":596,"sourceCode":"                                                                s,\n                                                                MAX_SSTABLES_TO_COMPACT_OPTION),\n                                                  e);\n             }\n        }\n        s = options.remove(EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS_OPTION);\n        if (s != null)\n        {\n            try\n            {\n                long expiredSSTableCheckFrequency = Long.parseLong(s);\n                if (expiredSSTableCheckFrequency <= 0)\n                    throw new ConfigurationException(String.format(\"Invalid configuration, %s should be positive: %d\",\n                                                                   EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS_OPTION,\n                                                                   expiredSSTableCheckFrequency));\n            }\n            catch (NumberFormatException e)\n            {\n                throw new ConfigurationException(String.format(\"%s is not a parsable long (base10) for %s\",\n                                                               s,\n                                                               EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS_OPTION),\n                                                 e);\n            }\n        }\n\n        validateBoolean(options, ALLOW_UNSAFE_AGGRESSIVE_SSTABLE_EXPIRATION_OPTION);\n        validateBoolean(options, PARALLELIZE_OUTPUT_SHARDS_OPTION);\n\n        s = options.remove(OVERLAP_INCLUSION_METHOD_OPTION);\n        if (s != null)\n        {\n            try\n            {\n                Overlaps.InclusionMethod.valueOf(toUpperCaseLocalized(s));\n            }\n            catch (IllegalArgumentException e)\n            {","sourceCodeStart":578,"sourceCodeEnd":614,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/db/compaction/unified/Controller.java#L578-L614","documentation":"The expired_sstables_check_frequency_seconds value is not a parsable base-10 long; the NumberFormatException from Long.parseLong is wrapped in a ConfigurationException. The option accepts only integer seconds.","triggerScenarios":"Controller.validateOptions receives a non-numeric or overflowing string for 'expired_sstables_check_frequency_seconds', e.g. '1m', '3.5', or a number larger than Long.MAX_VALUE.","commonSituations":"Passing durations with unit suffixes ('90s', '5min') that must instead be converted to seconds; JSON/YAML templating inserting quoted decimals.","solutions":["Convert the duration to whole seconds, e.g. '5min' -> '300'.","Use a plain base-10 long with no suffix or separators.","Remove the option to use the default frequency."],"exampleFix":"// before\n'expired_sstables_check_frequency_seconds': '5min'\n// after\n'expired_sstables_check_frequency_seconds': '300'","handlingStrategy":"validation","validationCode":"try { Long.parseLong(opts.get(\"expired_sstables_check_frequency_seconds\").trim()); } catch (NumberFormatException e) { /* invalid */ }","typeGuard":null,"tryCatchPattern":"try { applyOptions(); } catch (ConfigurationException e) { fixDurationToSeconds(); }","preventionTips":["Convert all durations to plain seconds integers before writing config","Reject suffixes like 's', 'm', 'min' in config generators","Keep values well below Long.MAX_VALUE"],"tags":["cassandra","configuration","compaction","parse-error"],"backgroundTag":"invalid-argument-format","analyzedSha":"88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1","analyzedAt":"2026-09-10T07:29:22.284Z","contentChangedAt":"2026-09-10T07:29:22.284Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}