[
https://issues.apache.org/jira/browse/CASSANDRA-16708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17356740#comment-17356740
]
Ekaterina Dimitrova commented on CASSANDRA-16708:
-------------------------------------------------
It seems that _FileUtils#stringifyFileSize_ returns an Integer if we provide a
Double number like #.00.
For example _FileUtils#stringifyFileSize(4.00)_ or
_FileUtils#stringifyFileSize(4.0)_ will turn into "4".
That is how the java format() method used by _FileUtils#stringifyFileSize_
works.
I fixed the tests in org.apache.cassandra.tools.nodetool.StatusTest to look
for both Integer and Double in this
[patch|https://github.com/ekaterinadimitrova2/cassandra/pull/134/commits/faf03246dd568188a7c3c5eeb7b0727cb15b2070].
Thousand successful runs can be found here:
[Java
8|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/921/workflows/e5e6b3d3-b080-4e4e-a87c-161fc52c2c63/jobs/5489]
[Java
11|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/921/workflows/2c51455d-6ebd-4627-b764-f59f71c23585/jobs/5484]
[build Java 8, run Java
11|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/921/workflows/e5e6b3d3-b080-4e4e-a87c-161fc52c2c63/jobs/5485]
> Fix
> org.apache.cassandra.tools.nodetool.StatusTest.testOutputWhileBootstrapping
> -------------------------------------------------------------------------------
>
> Key: CASSANDRA-16708
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16708
> Project: Cassandra
> Issue Type: Bug
> Components: Test/unit
> Reporter: Ekaterina Dimitrova
> Assignee: Ekaterina Dimitrova
> Priority: Normal
> Fix For: 4.0-rc2, 4.0, 4.0.x
>
>
> [https://jenkins-cm4.apache.org/job/Cassandra-4.0/71/testReport/junit/org.apache.cassandra.tools.nodetool/StatusTest/testOutputWhileBootstrapping_cdc/]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]