You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maria Makedonskaya (Jira)" <ji...@apache.org> on 2020/04/16 14:04:00 UTC
[jira] [Resolved] (IGNITE-12890) JMX attribute
'getExecutorServiceFormatted' of IgniteMXBean returns
getPublicThreadPoolSize() instead of formatted executor service
[ https://issues.apache.org/jira/browse/IGNITE-12890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maria Makedonskaya resolved IGNITE-12890.
-----------------------------------------
Resolution: Won't Fix
> JMX attribute 'getExecutorServiceFormatted' of IgniteMXBean returns getPublicThreadPoolSize() instead of formatted executor service
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-12890
> URL: https://issues.apache.org/jira/browse/IGNITE-12890
> Project: Ignite
> Issue Type: Bug
> Reporter: Maria Makedonskaya
> Assignee: Maria Makedonskaya
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> while testing JmxWorker I found a possible bug in one of attributes of IgniteMXBean
> 1. start ignite node with IGNITE_JMX_PORT=1100
> 2. get ExecutorServiceFormatted attribute via JMX
> {noformat}
> /usr/lib/jvm/java-8-oracle/bin/java -cp ./ignite-test-tools-1.0.0-SNAPSHOT.jar org.apache.ignite.testtools.JmxWorker -host=127.0.0.1 -port=1100 -bean=IgniteKernal -group=Kernal -attribute=ExecutorServiceFormatted
> 8
> {noformat}
> a number does not looks like proper value for string representation of complex object, browsing the code reveals following:
> {noformat}
> @Override public String getExecutorServiceFormatted() {
> assert cfg != null;
> return String.valueOf(cfg.getPublicThreadPoolSize());
> }
> {noformat}
> We should deprecate 'getExecutorServiceFormatted' and create a new method 'getPublicThreadPoolSize'.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)