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

The cache#putAllAsync method does not collect statistics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9, 2.8.1
    • None
    • Release Notes Required

    Description

      The cache#putAllAsync method does not collect statistics.

      The reproducer for GridCacheAbstractMetricsSelfTest:

          @Test
          public void testPutAllAsyncAvgTime() throws Exception {
              IgniteCache<Integer, Integer> cache = grid(0).cache(DEFAULT_CACHE_NAME);
      
              assertEquals(0.0, cache.localMetrics().getAveragePutTime(), 0.0);
              assertEquals(0, cache.localMetrics().getCachePuts());
      
              Map<Integer, Integer> values = new HashMap<>();
      
              values.put(1, 1);
              values.put(2, 2);
              values.put(3, 3);
      
              IgniteFuture<Void> fut = cache.putAllAsync(values);
      
              fut.get();
      
              assertTrue(waitForCondition(() -> cache.localMetrics().getAveragePutTime() > 0, 30_000));
      
              assertEquals(values.size(), cache.localMetrics().getCachePuts());
          }
      

      Attachments

        Issue Links

          Activity

            People

              NSAmelchev Nikita Amelchev
              NSAmelchev Nikita Amelchev
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 20m
                  20m