[
https://issues.apache.org/jira/browse/IGNITE-1943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15599313#comment-15599313
]
ASF GitHub Bot commented on IGNITE-1943:
----------------------------------------
GitHub user samaitra opened a pull request:
https://github.com/apache/ignite/pull/1179
IGNITE-1943 ignitevisorcmd: wrong behavior for "mclear" command
Functional tests execution result:
visor> node
Select node from:
=======================================================================================
Node ID8(@), IP Node Type Up Time CPUs CPU Load Free
Heap
=======================================================================================
0 425097BD(@n0), 192.168.0.103 Server 00:00:34 4 0.50 %
92.00 %
1 27906F97(@n1), 192.168.0.103 Server 00:00:28 4 1.17 %
93.00 %
---------------------------------------------------------------------------------------
Choose node number ('c' to cancel) [0]: c
visor> mclear
visor> mlist
Memory is empty.
visor> node
Select node from:
=======================================================================================
Node ID8(@), IP Node Type Up Time CPUs CPU Load Free
Heap
=======================================================================================
0 425097BD(@n0), 192.168.0.103 Server 00:00:46 4 0.50 %
92.00 %
1 27906F97(@n1), 192.168.0.103 Server 00:00:40 4 0.53 %
93.00 %
---------------------------------------------------------------------------------------
Choose node number ('c' to cancel) [0]: c
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/samaitra/ignite IGNITE-1943
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/1179.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1179
----
commit 5a96e426148e997958bc4397cad9f06c594e5041
Author: samaitra <[email protected]>
Date: 2016-10-23T08:15:00Z
IGNITE-1943 ignitevisorcmd: wrong behavior for "mclear" command
----
> ignitevisorcmd: wrong behavior for "mclear" command
> ---------------------------------------------------
>
> Key: IGNITE-1943
> URL: https://issues.apache.org/jira/browse/IGNITE-1943
> Project: Ignite
> Issue Type: Bug
> Components: general
> Affects Versions: 1.5.0.final
> Reporter: Vasilisa Sidorova
> Assignee: Saikat Maitra
> Fix For: 1.8
>
>
> ---------------------------------------------
> DESCRIPTION
> ---------------------------------------------
> "mclear" should clears all Visor console variables before they will be
> updated during next run of the corresponding command. It OK for all type of
> shortcut (@cX, @tX, @aX, @eX) exept shortcut for node-id variables. After
> "mclear" @nX are disappear from any statistics
> ---------------------------------------------
> STEPS FOR REPRODUCE
> ---------------------------------------------
> # Start cluster
> # Start visorcmd ([IGNITE_HOME]/bin/ignitevisorcmd.sh)
> # Connect to the started cluster (visor> open)
> # Execute any tasks in it (for example, run any example from EventsExample,
> DeploymentExample, ComputeContinuousMapperExample, ComputeTaskMapExample,
> ComputeTaskSplitExample)
> # Create several alerts (visor> alert)
> # Run visor "mclear" command
> # Run visor "node" command
> ---------------------------------------------
> ACTUAL RESULT
> ---------------------------------------------
> There isn't @nX values in the first table's column:
> {noformat}
> visor> node
> Select node from:
> +==================================================================+
> | # | Node ID8(@), IP | Up Time | CPUs | CPU Load | Free Heap |
> +==================================================================+
> | 0 | 6B3E4033, 127.0.0.1 | 00:38:41 | 8 | 0.20 % | 97.00 % |
> | 1 | 0A0D6989, 127.0.0.1 | 00:38:22 | 8 | 0.17 % | 97.00 % |
> | 2 | 0941E33F, 127.0.0.1 | 00:35:46 | 8 | 0.23 % | 97.00 % |
> +------------------------------------------------------------------+
> {noformat}
> ---------------------------------------------
> EXPECTED RESULT
> ---------------------------------------------
> There is @nX values in the first table's column:
> {noformat}
> visor> node
> Select node from:
> +=======================================================================+
> | # | Node ID8(@), IP | Up Time | CPUs | CPU Load | Free Heap |
> +=======================================================================+
> | 0 | 6B3E4033(@n0), 127.0.0.1 | 00:38:13 | 8 | 0.23 % | 97.00 % |
> | 1 | 0A0D6989(@n1), 127.0.0.1 | 00:37:54 | 8 | 0.27 % | 97.00 % |
> | 2 | 0941E33F(@n2), 127.0.0.1 | 00:35:18 | 8 | 0.20 % | 97.00 % |
> +-----------------------------------------------------------------------+
> {noformat}
> "mclear" should get effect only for "mget @nX" command (with result "Missing
> variable with name: '@nX'") and @nX variables should get new values after
> "node" (or "tasks") command execution. Like in case for all others @
> variables (@cX, @tX, @aX, @eX)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)