{"record":{"id":"f37c600eb4ac6ad9","repo":"apache/cassandra","slug":"deprecated","errorCode":null,"errorMessage":"Deprecated","messagePattern":"Deprecated","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/service/StorageService.java","lineNumber":5271,"sourceCode":"    }\n\n    @Override\n    public boolean isFullQueryLogEnabled()\n    {\n        return FullQueryLogger.instance.isEnabled();\n    }\n\n    @Override\n    public CompositeData getFullQueryLoggerOptions()\n    {\n        return FullQueryLoggerOptionsCompositeData.toCompositeData(FullQueryLogger.instance.getFullQueryLoggerOptions());\n    }\n\n    @Override\n    @Deprecated(since = \"4.0\")\n    public Map<String, Set<InetAddress>> getOutstandingSchemaVersions()\n    {\n        throw new RuntimeException(\"Deprecated\");\n    }\n\n    @Override\n    @Deprecated(since = \"CEP-21\")\n    public Map<String, Set<String>> getOutstandingSchemaVersionsWithPort()\n    {\n        throw new RuntimeException(\"Deprecated\");\n    }\n\n    public boolean autoOptimiseIncRepairStreams()\n    {\n        return DatabaseDescriptor.autoOptimiseIncRepairStreams();\n    }\n\n    public void setAutoOptimiseIncRepairStreams(boolean enabled)\n    {\n        DatabaseDescriptor.setAutoOptimiseIncRepairStreams(enabled);\n    }","sourceCodeStart":5253,"sourceCodeEnd":5289,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/service/StorageService.java#L5253-L5289","documentation":"getOutstandingSchemaVersions() (Map keyed by schema UUID to InetAddress sets) was deprecated in 4.0 (CASSANDRA-13983/CEP-21, host+port schema coordination) and is now permanently removed: the method unconditionally throws RuntimeException(\"Deprecated\"). It exists only as a stub for the StorageServiceMBean interface.","triggerScenarios":"Any call to StorageService.getOutstandingSchemaVersions() — via JMX, nodetool, or client code built against the 4.0-era MBean.","commonSituations":"Legacy monitoring/automation code compiled or scripted against pre-CEP-21 MBean signatures calling into a 4.1+ cluster; JMX consoles invoking the deprecated attribute.","solutions":["Switch to getOutstandingSchemaVersionsWithPort(), which returns Map<String, Set<String>> with host:port addresses.","Remove calls from tooling; use nodetool describecluster to inspect schema disagreement instead.","Update MBean clients to the current StorageServiceMBean interface."],"exampleFix":"// before\nMap<String, Set<InetAddress>> v = ss.getOutstandingSchemaVersions(); // throws\n// after\nMap<String, Set<String>> v = ss.getOutstandingSchemaVersionsWithPort();","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { return ss.getOutstandingSchemaVersions(); } catch (RuntimeException e) { return schemaVersionsViaDescribecluster(); }","preventionTips":["Do not call either getOutstandingSchemaVersions* on modern clusters; both are dead stubs.","Use nodetool describecluster for schema version/disagreement checks.","Wrap legacy MBean clients in fallbacks to current diagnostics.","Compile-time: bind to the current StorageServiceMBean interface."],"tags":["deprecated","jmx","schema","removed-api"],"backgroundTag":"deprecated-api-usage","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"}