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

Cfstats estimate number of keys should be stored as long, not int

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • 2.1.5
    • Legacy/Tools
    • None
    • Cassandra 2.1.3
      Nodetool

    • Low

    Description

      For some table with huge number of partitions, nodetool cfstats returns negative display:

      Number of keys (estimate): -2034463513
      

      The simple reason is the counter used in Nodetool is an int, it should be a long

      I attach a trivial fix

      Attachments

        1. patch.diff
          1 kB
          DuyHai Doan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              doanduyhai DuyHai Doan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: