[
https://issues.apache.org/jira/browse/CASSANDRA-19771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885074#comment-17885074
]
Mohammad Suhel commented on CASSANDRA-19771:
--------------------------------------------
Hi [~maxwellguo] , [~mmuzaf]
I’m currently encountering an issue with the unit tests related to the
{{gcstats}} command and would greatly appreciate your help.
The tests are failing with the following exception:
{{Exception in thread "main" java.lang.IllegalArgumentException: Server is not
initialized yet, cannot run nodetool.}}
I’ve tried various approaches to resolve this but haven’t been able to fix it.
However, I noticed that when I explicitly specify the port in the test like
this:
{{ToolRunner.ToolResult tool = ToolRunner.invokeNodetool("-p", "7199",
"gcstats");}}
the test cases pass successfully. This behavior is consistent across all the
other tests when I include the port.
I would be grateful if you could provide some guidance on what might be causing
this issue and how I can resolve it.
As a beginner contributor, I’m eager to learn, and your support would be
incredibly helpful in helping me understand this better.
> NodeTool gcstats should have JSON output option
> -----------------------------------------------
>
> Key: CASSANDRA-19771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19771
> Project: Cassandra
> Issue Type: Improvement
> Components: Tool/nodetool
> Reporter: Dhanush Ananthkar
> Assignee: Mohammad Suhel
> Priority: Normal
> Attachments: Screenshot from 2024-08-27 17-46-59.png
>
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> *nodetool help gcstats* does not show a JSON option
>
> {noformat}
> nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
> [(-pp | --print-port)] [(-pw <password> | --password
> <password>)]
> [(-pwf <passwordFilePath> | --password-file
> <passwordFilePath>)]
> [(-u <username> | --username <username>)] gcstats
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]