[
https://issues.apache.org/jira/browse/CASSANDRA-16612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17363091#comment-17363091
]
Ekaterina Dimitrova commented on CASSANDRA-16612:
-------------------------------------------------
Hi [~jlewandowski],
Thank you for the report. This seems to be the same issue I fixed for another
test a few weeks ago in CASSANDRA-16708.
I just did a quick grep and I think RingTest and StatusTest are the only places
we can see this issue.
Do you mind if I port the
[fix|https://github.com/apache/cassandra/commit/31c1bbe87f8e376f353df2a16881124122045936#diff-c8bb82ece7f986d0011448db420b024f4cca570e96082d78f4ae4902de882190R91]?
> RingTest has inconsistent assertion
> -----------------------------------
>
> Key: CASSANDRA-16612
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16612
> Project: Cassandra
> Issue Type: Bug
> Components: Test/unit
> Reporter: Jacek Lewandowski
> Assignee: Jacek Lewandowski
> Priority: Normal
>
> There is an assertion for the node current load like:
> {noformat}
> assertThat(hostRing, matchesPattern(".*\\d+\\.\\d+ KiB.*"));
> {noformat}
> while we are formatting that value with {{#.##}}. Therefore if we say have 46
> KiB, it will be formatted as 46 KiB rather than 46.00 KiB which is expected
> by the test. We need to either change this assertion or change the format
> string to {{#0.00}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]