You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Alexey Kuznetsov (JIRA)" <ji...@apache.org> on 2015/02/27 04:10:05 UTC

[jira] [Resolved] (IGNITE-344) Visor: cache sizes are in cache -scan and cache -clear commands

     [ https://issues.apache.org/jira/browse/IGNITE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kuznetsov resolved IGNITE-344.
-------------------------------------
    Resolution: Fixed
      Assignee: Pavel Konstantinov  (was: Alexey Kuznetsov)

Please test in ignite-344 branch.
I changed size() to take primary size instead of all size.

> Visor: cache sizes are in cache -scan and cache -clear commands
> ---------------------------------------------------------------
>
>                 Key: IGNITE-344
>                 URL: https://issues.apache.org/jira/browse/IGNITE-344
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: sprint-2
>            Reporter: Sergey Kozlov
>            Assignee: Pavel Konstantinov
>            Priority: Minor
>             Fix For: sprint-2
>
>
> cache -clear and cache -scan show different size for same cache.
> {noformat}
> visor> cache -scan
> Time of the snapshot: 02/25/15, 17:17:29
> +===================================================================================================================================+
> | # |           Name(@),            |                                    Nodes                                     |      Size      |
> +===================================================================================================================================+
> ...
> +---+-------------------------------+------------------------------------------------------------------------------+----------------+
> | 4 | partitioned(@c4)              | [7399f079-ef35-4033-81f7-dfd06fa3ad43, cc0210f0-60cd-4473-8971-9d547f149c56] | min: 500000    |
> |   |                               |                                                                              | avg: 500000.00 |
> |   |                               |                                                                              | max: 500000    |
> +---+-------------------------------+------------------------------------------------------------------------------+----------------+
> ...
> Choose cache number ('c' to cancel) [c]:
> visor> cache -clear -c=partitioned
> Cleared cache with name: partitioned
> +======================================================+
> |  Node ID8(@)  | Cache Size Before | Cache Size After |
> +======================================================+
> | CC0210F0(@n0) | 1000000           | 0                |
> +------------------------------------------------------+
> visor> cache -scan
> Time of the snapshot: 02/25/15, 17:18:06
> +==============================================================================================================================+
> | # |           Name(@),            |                                    Nodes                                     |   Size    |
> +==============================================================================================================================+
> ...
> +---+-------------------------------+------------------------------------------------------------------------------+-----------+
> | 4 | partitioned(@c4)              | [7399f079-ef35-4033-81f7-dfd06fa3ad43, cc0210f0-60cd-4473-8971-9d547f149c56] | min: 0    |
> |   |                               |                                                                              | avg: 0.00 |
> |   |                               |                                                                              | max: 0    |
> +---+-------------------------------+------------------------------------------------------------------------------+-----------+
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)