CEP-38: Management API MVP Implementation [CASSANDRA-19476]#4582
Draft
Mmuzaf wants to merge 16 commits intoapache:trunkfrom
Draft
CEP-38: Management API MVP Implementation [CASSANDRA-19476]#4582Mmuzaf wants to merge 16 commits intoapache:trunkfrom
Mmuzaf wants to merge 16 commits intoapache:trunkfrom
Conversation
smiklosovic
reviewed
Jan 27, 2026
src/java/org/apache/cassandra/tools/nodetool/strategy/ProtocolAwareExecutionStrategy.java
Outdated
Show resolved
Hide resolved
80a9de6 to
d122b3a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CEP-38: Management API MVP Implementation
Summary
This PR implements the mvp of CEP-38, enabling server-side execution of ops commands via a native management transport and CQL interface. This eliminates the need for external JMX connections.
See: https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-38%3A+CQL+Management+API
Key Features
1. Management API Infrastructure
NodeProbeintegration for in-process MBean access2. Native Management Transport
native_transport_management_port)managementExecutor) for isolation and prioritizationCOMMANDstatements are allowed on management connections; other CQL operations are rejected3. CQL Command Execution
COMMAND <commandName> [WITH key1 = value1 AND key2 = value2]execution_id(UUID) andoutput(String) columns4. Picocli Integration
PicocliCommandAdapterandPicocliCommandRegistryAdapterbridge picocli commands to the management APICommandExecutionArgs5. Server-Side Execution
NodeProbesupports remote jmx and server-side in-process execution modes6. JMX/Dynamic MBean Support
org.apache.cassandra.management:type=Command,name=<commandName>7. Nodetool Integration
Configuration
start_native_management_transport: Enable/disable management transport (default disabled -false)native_transport_management_port: Port for management transport (default:11211)native_transport_management_max_threads: Thread pool size for management operationsLimitations
AllowAllAuthenticator(authentication disabled). Full authentication and authorization support is planned for future releases.DESCRIBE COMMANDwill be introduces laterRelated
Example Usage