Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14787

nodetool status "Load" columns has wrong width

    XMLWordPrintableJSON

    Details

    • Severity:
      Low
    • Complexity:
      Low Hanging Fruit
    • Since Version:
    • Test and Documentation Plan:
      Hide

      Tested via the command line. No (known) existing unit test available.

      Show
      Tested via the command line. No (known) existing unit test available.

      Description

      Using Cassandra 3.11.2 on FreeBSD, I get:

      Status=Up/Down
      |/ State=Normal/Leaving/Joining/Moving
      --  Address            Load       Tokens       Owns (effective)  Host ID ...
      UN  server1.andxor.it  11.11 MiB  256          39.6%             ...
      UN  server2.andxor.it  32.04 MiB  256          41.8%             ...
      UN  server3.andxor.it  519.33 KiB  256          40.0%             ...
      UN  server4.andxor.it  10.95 MiB  256          40.3%             ...
      UN  server5.andxor.it  11.03 MiB  256          38.4%             ...
      

      AFAICT this is caused by "%-9s" in Status.java:292 which should be probably a 10 instead of 9.

        Attachments

        1. CASSANDRA-14787.txt
          2 kB
          Kirk True
        2. 14787-trunk.txt
          12 kB
          Kirk True

          Issue Links

            Activity

              People

              • Assignee:
                kirktrue Kirk True
                Reporter:
                lapo@lapo.it Lapo Luchini
                Authors:
                Kirk True
                Reviewers:
                Chris Lohfink
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m