{"record":{"id":"b75271dfda2c1a8f","repo":"apache/cassandra","slug":"internode-max-message-size-must-no-exceed-internod-b75271","errorCode":null,"errorMessage":"internode_max_message_size must no exceed internode_application_receive_queue_reserve_global_capacity","messagePattern":"internode_max_message_size must no exceed internode_application_receive_queue_reserve_global_capacity","errorType":"validation","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/config/DatabaseDescriptor.java","lineNumber":1210,"sourceCode":"        {\n            conf.server_encryption_options.applyConfig();\n\n            if (conf.server_encryption_options.legacy_ssl_storage_port_enabled &&\n                conf.server_encryption_options.tlsEncryptionPolicy() == EncryptionOptions.TlsEncryptionPolicy.UNENCRYPTED)\n            {\n                throw new ConfigurationException(\"legacy_ssl_storage_port_enabled is true (enabled) with internode encryption disabled (none). Enable encryption or disable the legacy ssl storage port.\");\n            }\n        }\n\n        if (conf.internode_max_message_size != null)\n        {\n            long maxMessageSize = conf.internode_max_message_size.toBytes();\n\n            if (maxMessageSize > conf.internode_application_receive_queue_reserve_endpoint_capacity.toBytes())\n                throw new ConfigurationException(\"internode_max_message_size must no exceed internode_application_receive_queue_reserve_endpoint_capacity\", false);\n\n            if (maxMessageSize > conf.internode_application_receive_queue_reserve_global_capacity.toBytes())\n                throw new ConfigurationException(\"internode_max_message_size must no exceed internode_application_receive_queue_reserve_global_capacity\", false);\n\n            if (maxMessageSize > conf.internode_application_send_queue_reserve_endpoint_capacity.toBytes())\n                throw new ConfigurationException(\"internode_max_message_size must no exceed internode_application_send_queue_reserve_endpoint_capacity\", false);\n\n            if (maxMessageSize > conf.internode_application_send_queue_reserve_global_capacity.toBytes())\n                throw new ConfigurationException(\"internode_max_message_size must no exceed internode_application_send_queue_reserve_global_capacity\", false);\n        }\n        else\n        {\n            long maxMessageSizeInBytes =\n            Math.min(conf.internode_application_receive_queue_reserve_endpoint_capacity.toBytes(),\n                     conf.internode_application_send_queue_reserve_endpoint_capacity.toBytes());\n\n            conf.internode_max_message_size = new DataStorageSpec.IntBytesBound(maxMessageSizeInBytes);\n        }\n\n        validateMaxConcurrentAutoUpgradeTasksConf(conf.max_concurrent_automatic_sstable_upgrades);\n","sourceCodeStart":1192,"sourceCodeEnd":1228,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/config/DatabaseDescriptor.java#L1192-L1228","documentation":"internode_max_message_size must also not exceed the global reserved capacity of the internode application receive queue; otherwise one max-size message could exceed the total bytes reserved for all endpoints' receive buffers. DatabaseDescriptor throws this ConfigurationException when maxMessageSize > internode_application_receive_queue_reserve_global_capacity.","triggerScenarios":"cassandra.yaml sets internode_max_message_size_in_bytes greater than internode_application_receive_queue_reserve_global_capacity_in_bytes (per-endpoint check passed or not reached) during applySimpleConfig.","commonSituations":"Multi-node clusters where global reserve was tuned down to save memory; large-message tuning that scaled per-endpoint but not global reserve; capacity math errors (global should be >= per-endpoint).","solutions":["Raise internode_application_receive_queue_reserve_global_capacity_in_bytes to at least internode_max_message_size_in_bytes","Lower internode_max_message_size_in_bytes below the global reserve","Remove both overrides and rely on consistent defaults"],"exampleFix":"# before (cassandra.yaml)\ninternode_max_message_size_in_bytes: 104857600\ninternode_application_receive_queue_reserve_global_capacity_in_bytes: 33554432\n# after\ninternode_max_message_size_in_bytes: 104857600\ninternode_application_receive_queue_reserve_global_capacity_in_bytes: 134217728","handlingStrategy":"validation","validationCode":"if (conf.internode_max_message_size != null &&\n    conf.internode_max_message_size.toBytes() > conf.internode_application_receive_queue_reserve_global_capacity.toBytes())\n    throw new IllegalArgumentException(\"internode_max_message_size must not exceed receive-queue global reserve\");","typeGuard":null,"tryCatchPattern":"try { DatabaseDescriptor.applyConfig(conf); } catch (ConfigurationException e) { if (e.getMessage().contains(\"receive_queue_reserve_global_capacity\")) { /* raise global reserve */ } }","preventionTips":["Ensure global reserve >= per-endpoint reserve and >= max message size","When saving memory on one reserve, re-check the sibling limits","Keep a checklist of the four internode queue capacity settings when tuning"],"tags":["cassandra","configuration","internode"],"backgroundTag":"conflicting-config-options","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"}