Ilya Korol created IGNITE-28003:
-----------------------------------

             Summary: Partition states metric source listed as disabled while 
it's not
                 Key: IGNITE-28003
                 URL: https://issues.apache.org/jira/browse/IGNITE-28003
             Project: Ignite
          Issue Type: Bug
          Components: metrics ai3
    Affects Versions: 3.1
            Reporter: Ilya Korol


Metric source {{<partition.states.zone.X.table.Y>}} is reported as *disabled* 
in {{node metric source list}} output right after node startup, while in fact 
it's enabled (you can enabled JMX exporter and see it).

Looks like it's due to bug with enabled field in `PartitionStatesMetricSource`. 
We don't set it to true anywhere so it's {{false}} by default and when we call 
enable() method we skip initial condition:

{code:java}
@Override
public synchronized @Nullable MetricSet enable() {
    if (enabled) {
        return null;
    }

    ...
}

@Override
public synchronized boolean enabled() {
    return enabled; // always false
}
{code}






--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to