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

Pages list caching can cause IgniteOOME when checkpoint is triggered by "too many dirty pages" reason

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.8
    • 2.8, 2.9
    • persistence
    • None

    Description

      When a checkpoint is triggered, we need some amount of page memory to store pages list on-heap cache.

      If data region is too small, a checkpoint is triggered by "too many dirty pages" reason and pages list cache is rather big, we can get IgniteOutOfMemoryException.

      Reproducer:

      @Override protected IgniteConfiguration getConfiguration(String name) throws Exception {
          IgniteConfiguration cfg = super.getConfiguration(name);
      
          cfg.setDataStorageConfiguration(new DataStorageConfiguration()
              .setDefaultDataRegionConfiguration(new DataRegionConfiguration()
                  .setPersistenceEnabled(true)
                  .setMaxSize(50 * 1024 * 1024)
              ));
      
          return cfg;
      }
      
      @Test
      public void testUpdatesNotFittingIntoMemoryRegion() throws Exception {
          IgniteEx ignite = startGrid(0);
      
          ignite.cluster().active(true);
      
          ignite.getOrCreateCache(DEFAULT_CACHE_NAME);
      
          try (IgniteDataStreamer<Object, Object> streamer = ignite.dataStreamer(DEFAULT_CACHE_NAME)) {
              for (int i = 0; i < 100_000; i++)
                  streamer.addData(i, new byte[i % 2048]);
          }
      }
      

      Attachments

        1. screenshot-2.png
          19 kB
          Evgeny Stanilovsky
        2. screenshot-1.png
          20 kB
          Evgeny Stanilovsky

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              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 - 1h 40m
                  1h 40m