[
https://issues.apache.org/jira/browse/IGNITE-12890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084808#comment-17084808
]
Andrey N. Gura commented on IGNITE-12890:
-----------------------------------------
[~makedonskaya] {{getExecutorServiceFormatted}} was already deprecated (see
{{org.apache.ignite.mxbean.IgniteMXBean#getExecutorServiceFormatted}}).
Method {{getPublicThreadPoolSize()}} doesn't make sense because:
* There are other thread pools in the system which don't have similar methods.
* There are metrics for thread pools that are better means for getting pools
information.
So I think this issue should be closed as 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)