-
Notifications
You must be signed in to change notification settings - Fork 3.8k
CEP-38: Management API MVP Implementation [CASSANDRA-19476] #4582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Mmuzaf
wants to merge
14
commits into
apache:trunk
Choose a base branch
from
Mmuzaf:cassandra-19476
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,117
−822
Conversation
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
smiklosovic
reviewed
Jan 27, 2026
|
|
||
| import static org.apache.cassandra.utils.LocalizeString.toUpperCaseLocalized; | ||
|
|
||
| public class ProtocolAwareExecutionStrategy implements CommandExecutionStraregy |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Straregy -> Strategy
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