Pavel Konstantinov created IGNITE-4315:
------------------------------------------
Summary: visorcmd: 'cache -swap' shows result for cache that has
no swap configuration
Key: IGNITE-4315
URL: https://issues.apache.org/jira/browse/IGNITE-4315
Project: Ignite
Issue Type: Bug
Components: visor
Affects Versions: 1.8
Reporter: Pavel Konstantinov
I have a grid with several caches including replicated.
This cache has no swap options in it's configuration, but when I invoke cache
-swap <this_cache> I see some entries was swapped.
Here is result output
{code}
Swapped entries in cache: tx_replicated
+========================================================================+
| Node ID8(@) | Entries Swapped | Cache Size Before | Cache Size After |
+========================================================================+
| E9B8330E(@n1) | 12097 | 25092 | 12995 |
| AF956783(@n0) | 12992 | 25090 | 12098 |
+------------------------------------------------------------------------+
{code}
Here is a cache configuration
{code}
visor> cache -config -c=@c29 -a -id8=@n0
ID8=AF956783, time of the snapshot: 11/28/16, 11:20:54
+=================================================================================================================================================+
| Name(@) | Mode | Nodes | Entries (Heap / Off-heap) |
Hits | Misses | Reads | Writes |
+=================================================================================================================================================+
| tx_replicated(@c29) | REPLICATED | 1 | min: 21149 (21149 / 0) |
min: 363516 | min: 400407 | min: 763923 | min: 1100927 |
| | | | avg: 21149.00 (21149.00 / 0.00) |
avg: 363516.00 | avg: 400407.00 | avg: 763923.00 | avg: 1100927.00 |
| | | | max: 21149 (21149 / 0) |
max: 363516 | max: 400407 | max: 763923 | max: 1100927 |
+-------------------------------------------------------------------------------------------------------------------------------------------------+
Cache 'tx_replicated(@c29)':
+--------------------------------------------------------+
| Name(@) | tx_replicated(@c29) |
| Nodes | 1 |
| Total size Min/Avg/Max | 21149 / 21149.00 / 21149 |
| Heap size Min/Avg/Max | 21149 / 21149.00 / 21149 |
| Off-heap size Min/Avg/Max | 0 / 0.00 / 0 |
+--------------------------------------------------------+
Nodes for: tx_replicated(@c29)
+============================================================================================================+
| Node ID8(@), IP | CPUs | Heap Used | CPU Load | Up Time |
Size | Hi/Mi/Rd/Wr |
+============================================================================================================+
| AF956783(@n0), 127.0.0.1 | 8 | 68.92 % | 3.50 % | 01:46:56:004 |
Total: 21149 | Hi: 363516 |
| | | | | |
Heap: 21149 | Mi: 400407 |
| | | | | |
Off-Heap: 0 | Rd: 763923 |
| | | | | |
Off-Heap Memory: 0 | Wr: 1100927 |
+------------------------------------------------------------------------------------------------------------+
'Hi' - Number of cache hits.
'Mi' - Number of cache misses.
'Rd' - number of cache reads.
'Wr' - Number of cache writes.
Aggregated queries metrics:
Minimum execution time: 00:00:00:000
Maximum execution time: 00:00:00:000
Average execution time: 00:00:00:000
Total number of executions: 0
Total number of failures: 0
Cache configuration:
+==========================================================================================================+
| Name | Value
|
+==========================================================================================================+
| Mode | REPLICATED
|
| Atomicity Mode | TRANSACTIONAL
|
| Atomic Write Ordering Mode | <n/a>
|
| Statistic Enabled | on
|
| Management Enabled | off
|
| Time To Live Eager Flag | true
|
| Write Synchronization Mode | FULL_SYNC
|
| Swap Enabled | off
|
| Invalidate | off
|
| Start Size | 5000
|
| Affinity Function |
o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction |
| Affinity Backups | 2147483647
|
| Affinity Partitions | 512
|
| Affinity Exclude Neighbors | false
|
| Affinity Mapper |
o.a.i.i.processors.cache.CacheDefaultBinaryAffinityKeyMapper |
| Rebalance Mode | ASYNC
|
| Rebalance Batch Size | 524288
|
| Rebalance Thread Pool size | 2
|
| Rebalance Timeout | 10000
|
| Rebalance Delay | 0
|
| Time Between Rebalance Messages | 0
|
| Eviction Policy Enabled | off
|
| Eviction Policy | <n/a>
|
| Eviction Policy Max Size | <n/a>
|
| Eviction Filter | <n/a>
|
| Eviction Key Buffer Size | 1024
|
| Eviction Synchronized | off
|
| Eviction Overflow Ratio | 10.0
|
| Synchronous Eviction Timeout | 10000
|
| Synchronous Eviction Concurrency Level | 4
|
| Near Cache Enabled | off
|
| Near Start Size | 0
|
| Near Eviction Policy | <n/a>
|
| Near Eviction Policy Max Size | <n/a>
|
| Default Lock Timeout | 0
|
| Metadata type count | 0
|
| Cache Interceptor | <n/a>
|
| Store Enabled | off
|
| Store Class | <n/a>
|
| Store Factory Class |
|
| Store Keep Binary | false
|
| Store Read Through | off
|
| Store Write Through | off
|
| Write-Behind Enabled | off
|
| Write-Behind Flush Size | 10240
|
| Write-Behind Frequency | 5000
|
| Write-Behind Flush Threads Count | 1
|
| Write-Behind Batch Size | 512
|
| Concurrent Asynchronous Operations Number | 500
|
| Memory Mode | ONHEAP_TIERED
|
| Off-Heap Size | <n/a>
|
| Loader Factory Class Name | <n/a>
|
| Writer Factory Class Name | <n/a>
|
| Expiry Policy Factory Class Name |
javax.cache.configuration.FactoryBuilder$SingletonFactory |
| Query Execution Time Threshold | 3000
|
| Query Schema Name |
|
| Query Escaped Names | off
|
| Query Onheap Cache Size | 10240
|
| Query SQL functions | <n/a>
|
| Query Indexed Types | <n/a>
|
+----------------------------------------------------------------------------------------------------------+
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)