cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andres de la Peña (Jira) <>
Subject [jira] [Created] (CASSANDRA-16938) Missed wait latencies in the output of `nodetool tpstats -F`
Date Thu, 09 Sep 2021 14:54:00 GMT
Andres de la Peña created CASSANDRA-16938:

             Summary: Missed wait latencies in the output of `nodetool tpstats -F`
                 Key: CASSANDRA-16938
             Project: Cassandra
          Issue Type: Bug
          Components: Tool/nodetool
            Reporter: Andres de la Peña
            Assignee: Andres de la Peña

The output of {{nodetool tpstats -F json}} always prints an empty map for {{WaitLatencies}}:
$ nodetool tpstats -F json
The same happens with yaml output:
$ nodetool tpstats -F yaml
WaitLatencies: {}
This happens because [this cast|]
silently fails inside a try-catch with an empty catch block:
String[] strValues = (String[])
                                      .map(D -> D.toString())
When we would need something like:
String[] strValues =
This conversion from {{Double[]}} to {{String[]}} was introduced during CASSANDRA-16230. I
think that conversion was done trying to work around a malformed JSON output detected in [the
new tests|]
added by that ticket. Without the conversion the output would be something like:
$ nodetool tpstats -F json
That's because {{json-simple}} doesn't handle well arrays. I think that instead of converting
the array of doubles to an array of strings we can simply use {{jackson-mapper-asl}} to print
the proper array.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message