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

If getAll() fails with NPE, onHeap entry is not removed, for local cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.4
    • cache

    Description

      GridCacheLocalFullApiSelfTest.testGetAllWithNulls

          final Set<String> c = new HashSet<>();
      
              c.add("key1");
              c.add(null);
      
              GridTestUtils.assertThrows(log, new Callable<Void>() {
                  @Override public Void call() throws Exception {
                      cache.getAll(c);
      
                      return null;
                  }
              }, NullPointerException.class, null);
      

      After getAll, entry with "key1" will be in heap map, it is dependent of order in collection for getAll();

      Attachments

        Activity

          People

            nizhikov Nikolay Izhikov
            DmitriyGovorukhin Dmitriy Govorukhin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: