Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13100

ClassCastException in cache group metrics on client nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9
    • None
    • None

    Description

      The following exception can be observed when reading cache group metrics on client nodes with persistence-enabled config:

      java.lang.ClassCastException: org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager cannot be cast to org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager
      	at org.apache.ignite.internal.processors.cache.CacheGroupMetricsImpl.database(CacheGroupMetricsImpl.java:506)
      	at org.apache.ignite.internal.processors.cache.CacheGroupMetricsImpl.lambda$new$0(CacheGroupMetricsImpl.java:103)
      	at org.apache.ignite.internal.util.lang.GridFunc.lambda$nonThrowableSupplier$3(GridFunc.java:3341)
      	at org.apache.ignite.internal.processors.metric.impl.LongGauge.value(LongGauge.java:45)
      	at org.apache.ignite.spi.metric.LongMetric.getAsString(LongMetric.java:29)
      

      The reason is an incomplete check for persistence enabled in CacheGroupMetricsImpl: we should also check for client nodes.

      Suggested solution: include the check for client node mode for database metrics readings

      Attachments

        Issue Links

          Activity

            People

              agoncharuk Alexey Goncharuk
              agoncharuk Alexey Goncharuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m