Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6131

In visorcmd "cache on nodes" statistics doubles off-heap entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.3
    • visor
    • None

    Description

      Cache contains 300024 entries actually, but "Nodes for:" shows double that number under Total field and repeats it in Heap and Off-Heap fields.

      visor> cache -a -c=EmployeesCache
      Time of the snapshot: 08/21/17, 17:20:45
      +===============================================================================================================================+
      |       Name(@)       |    Mode     | Nodes |     Entries (Heap / Off-heap)     |   Hits    |  Misses   |   Reads   |  Writes   |
      +===============================================================================================================================+
      | EmployeesCache(@c0) | PARTITIONED | 1     | min: 300024 (0 / 300024)          | min: 0    | min: 0    | min: 0    | min: 0    |
      |                     |             |       | avg: 300024.00 (0.00 / 300024.00) | avg: 0.00 | avg: 0.00 | avg: 0.00 | avg: 0.00 |
      |                     |             |       | max: 300024 (0 / 300024)          | max: 0    | max: 0    | max: 0    | max: 0    |
      +-------------------------------------------------------------------------------------------------------------------------------+
      
      Cache 'EmployeesCache(@c0)':
      +-----------------------------------------------------------+
      | Name(@)                     | EmployeesCache(@c0)         |
      | Nodes                       | 1                           |
      | Total size Min/Avg/Max      | 300024 / 300024.00 / 300024 |
      |   Heap size Min/Avg/Max     | 0 / 0.00 / 0                |
      |   Off-heap size Min/Avg/Max | 300024 / 300024.00 / 300024 |
      +-----------------------------------------------------------+
      
      Nodes for: EmployeesCache(@c0)
      +=============================================================================================================+
      |      Node ID8(@), IP      | CPUs | Heap Used | CPU Load |   Up Time    |         Size         | Hi/Mi/Rd/Wr |
      +=============================================================================================================+
      | C1AB91DD(@n0), 172.16.9.1 | 8    | 25.84 %   | 0.17 %   | 00:01:09:138 | Total: 600048        | Hi: 0       |
      |                           |      |           |          |              |   Heap: 300024       | Mi: 0       |
      |                           |      |           |          |              |   Off-Heap: 300024   | Rd: 0       |
      |                           |      |           |          |              |   Off-Heap Memory: 0 | Wr: 0       |
      +-------------------------------------------------------------------------------------------------------------+
      

      I'm attaching a simple project (by Ignite console) where this reproduces with data from https://github.com/datacharmer/test_db

      Attachments

        1. Employees-project.zip
          15 kB
          Ilya Kasnacheev

        Issue Links

          Activity

            People

              ilyak Ilya Kasnacheev
              ilyak Ilya Kasnacheev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: