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

Incorrect check ObjectInput.available() in CacheMetricsSnapshot

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: None
    • Labels:
      None

      Description

      CacheMetricsSnapshot.readExternal

       // 11 long and 5 float values give 108 bytes in total.
              if (in.available() >= 108) {
                  entryProcessorPuts = in.readLong();
                  entryProcessorAverageInvocationTime = in.readFloat();
                  entryProcessorInvocations = in.readLong();
                  entryProcessorMaxInvocationTime = in.readFloat();
                  entryProcessorMinInvocationTime = in.readFloat();
                  entryProcessorReadOnlyInvocations = in.readLong();
                  entryProcessorHitPercentage = in.readFloat();
                  entryProcessorHits = in.readLong();
                  entryProcessorMisses = in.readLong();
                  entryProcessorMissPercentage = in.readFloat();
                  entryProcessorRemovals = in.readLong();
              }
      

      Here we have 6 long variables but not an 11.

        Attachments

          Activity

            People

            • Assignee:
              DmitriyGovorukhin Dmitriy Govorukhin
              Reporter:
              DmitriyGovorukhin Dmitriy Govorukhin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: